The attacks appear to be an “intelligence-gathering” mission, the agencies said.