A former FBI intelligence analyst pleaded guilty in federal court Wednesday to possession of child pornography.

Keith Dietterle, who was assigned to FBI headquarters, was arrested in November after engaging in conversations with an undercover police detective on a social networking site. The District resident faces a prison sentence ranging from 97 to 121 months and a maximum fine of $250,000, according to the U.S. attorney’s office.

According to court documents, Dietterle, 28, sent pornographic images of children and links to videos to the undercover D.C. police detective. The detective detailed in court papers his conversations with Dietterle, in which they allegedly discussed arranging a sexual encounter with young children.

After the investigation, Dietterle was dismissed from the agency.

Dietterle, who has been in custody since his arrest, is scheduled for sentencing before U.S. District Judge Amy Berman Jackson on June 27.