A retired Brockport police officer and Sweden winery/brewery owner on Monday admitted he raped a Holley high school student while he worked as a security guard in the Orleans County school.

Adam Mesiti, 46, pleaded guilty to one count of third-degree rape, a felony, in Orleans County Court as part of a plea agreement, according to the Orleans County District Attorney's Office. Mesiti was initially charged with 10 counts of third-degree rape, 20 counts of third-degree criminal sexual act and 30 counts of sexual misconduct, according to Orleans County Undersheriff Christopher M. Bourke. The plea agreement will satisfy all 60 charges.

More:Retired Brockport police officer charged with rape

According to deputies, the encounters occurred in 2014, when Mesiti worked for a private contracting company, C.O.P. Security, and was assigned to work for three or four months at Holley High School. The victim, a 16-year-old girl, was a Holley student at the time. Bourke said the encounters occurred both inside and outside the school.

Deputies were notified earlier this year after someone who knew the teen told school officials about the encounters. A monthlong investigation followed.

An order of protection was issued on Monday for the teen.

Mesiti is scheduled to be sentenced in Orleans County Court on Aug. 21. He will face a sentence of up to six months in the Orleans County Jail and up to 10 years probation, according to the District Attorney's Office.

Mesiti and his wife, Aimee Mesiti, own Five Sons Winery and RG Brewing on West Sweden Road.

VFREILE@Gannett.com