A Boston Children’s Hospital endocrinologist and former medical director of Phillips Academy Andover has been charged in federal court with receiving child pornography after more then 500 photographs and at least 60 DVDs were found in his Andover home, according to federal prosecutors.

Dr. Richard Keller worked at the boarding school for 19 years. He resigned last year, when the school declined to renew his contract, said Phillips Academy spokesman Stephen Porter. Porter would not say more about the school’s decision.

“That is a confidential personnel matter that we have been assured [by the school’s human resources department] is not related to the kinds of charges filed against him today,” he said.

Advertisement - Continue Reading Below

It’s not clear when Keller began working at Children’s Hospital most recently. The 56-year-old was a fellow there in the mid-1980s, when he was first licensed to practice in Massachusetts. Hospital spokesman Robert Graham said in an e-mail that Keller was placed on leave when hospital officials learned of the charges Thursday morning.

“No complaints or concerns have been expressed by any patients or family members about the care Dr. Keller provided while he was at Children’s,” said Graham, who did not answer any specific questions about the case or Keller’s role at the hospital.

As Phillips Academy’s primary physician, Keller “watched out for the health of the school,” seeing to student needs, along with other clinical staff members, and serving as liaison to area hospitals, Porter said. He taught health-related classes that included sexual education and lived on campus for much of his tenure.

Federal investigators were looking into a company outside of the United States that produced pornographic movies, mostly of young boys, when they came across Keller’s name, e-mail, and addresses in the customer database, according to an affidavit filed in federal court. The company had been the subject of at least 20 complaints to at tipline at the National Center for Missing and Exploited Children.

Keller had placed 19 orders between July 2009 and January 2011, purchasing more than 50 movie titles totalling $2,695, the court filing said. Those described in the affidavit all involved boys engaged in sexually explicit activities.

Keller was arrested at his Andover home Thursday morning, said Christina Dilorio-Sterling, a spokeswoman for US Attorney Carmen M. Ortiz.

Liz Kowalczyk of the Globe staff contributed to this report. Chelsea Conaboy can be reached at cconaboy@boston.com. Follow her on Twitter @cconaboy. Martine Powers can be reached at mpowers@globe.com.