Plans for an attack were at an early stage and the suspect had not purchased explosives, officials said.