Officials say the suspect may have written an online tract expressing white nationalist and racist views.