A security officer at Ann Klein Forensic Center accused of sexually assaulting a female patient at the state-run mental health facility has pleaded guilty to official misconduct and will serve at least five years behind bars.

Kenneth Glover, 38, of Hamilton, was originally charged with two counts of first-degree aggravated sexual assault and related offenses on allegations he vaginally penetrated the victim by force on two separate occasions earlier this year. A grand jury indicted him on the heavy charges in June, but Glover last month reached a plea agreement that calls for most charges to be dismissed.

Glover pleaded guilty Oct. 10 to a single count of second-degree official misconduct on a promise that prosecutors will dispose of his sexual assault and invasion of privacy charges at his upcoming sentencing hearing next month, according to court records.

New Jersey State Police Trooper Jason L. Lapham arrested Glover March 7 at the Trenton-based forensic center. A Superior Court judge during a March 16 detention hearing described the sexual assault charges as being “very serious” and ordered Glover to be jailed without bail on pretrial detention.