A former janitor who was caught photographing a 10-year-old girl in a bathroom stall at a Burnsville private school was sentenced Friday in Dakota County District Court.

Jason D. Kohlwey, 31, of Eagan, was sentenced to four days in jail, 30 days of electronic home monitoring and up to eight years of probation.

Kohlwey pleaded guilty in August to two counts of invasion of privacy, both felonies. A charge of child pornography possession and three additional counts of invasion of privacy against Kohlwey were dismissed as part of a plea agreement, said Dakota County Attorney James Backstrom.

"I think he should have received significantly more jail time than he did," said Backstrom, who said his office sought a jail sentence of 180 days. "These were serious crimes that traumatized one young victim and invaded the privacy of many others."

Police began investigating Kohlwey in October 2009 after a girl reported that a man had put a camera under the divider of a bathroom stall at Good Shepherd Lutheran School while she was using the toilet.

Kohlwey was fired from his job at the school shortly after the incident.

Investigators who searched Kohlwey's computer found numerous photographs of the buttocks of young girls and several of girls or women using the restroom. One picture was of a 5-year-old.

Kohlwey's sentence also requires him to register as a predatory offender, to have no unauthorized, unsupervised contact with females and to complete sex-offender treatment.