A spokesman for the intelligence agency says security agents detained the suspects before they had a chance to strike targets in Afghanistan .