Updated

A doctor who worked at a prestigious Massachusetts boarding school has pleaded guilty to child pornography charges.

Richard Keller, of Andover, pleaded guilty Monday to two counts of receiving and one count of possessing child pornography. Under the terms of a deal with prosecutors, Keller's attorney and the government recommended a sentence of between five and 6 1/2 years. Sentencing is scheduled for Feb. 27.

Under the agreement, the 57-year-old Keller acknowledged purchasing pornography from a Canadian company and having some of it sent to the grounds of the elite Phillips Academy in Andover, where he was the medical director for 19 years until stepping down in 2011.

Keller did not speak during a hearing in U.S. District Court in Boston, except to answer questions from the judge.