One official said the agent in question sent shirtless photos to Ms. Kelley well before the email investigation began, and FBI officials only became aware of them some time later. Eventually, supervisors told the agent he was to have nothing to do with the case, though he never had a formal role in the investigation, the official said.