A former FBI analyst has been arrested and charged with distributing child pornography.

 Keith Dietterle, who was assigned to FBI headquarters, was charged last week after allegedly engaging in conversations with an undercover police detective on a social networking site.

Dietterle, a District resident, is accused of sending pornographic images and videos of young children to the undercover detective from the Metropolitan Police Department.

In court papers, the detective details his conversations with Dietterle, in which they discuss arranging a sexual encounter with a three-year-old boy and 12-year-old girl.

After the investigation, first reported by the Washington Examiner, Dietterle was dismissed from the agency, according to FBI spokesman Paul Bresson.

Dietterle’s attorney, Edward Sussman, declined comment.

Dietterle is being held without bond. His detention hearing is set for Dec. 20 in U.S. District court before Judge John M. Facciola.