Federal prosecutors are investigating whether a Department of Homeland Security employee with top-secret clearance was planning an attack at the agency's Washington headquarters when he entered the building with a gun, a knife, an infrared camera, pepper spray and handcuffs.