Federal agents are investigating an attack on a Manhattan government complex by a former soldier, raising concerns over tensions with federal enforcement agencies.