Follow KDKA-TV: Facebook | Twitter

PITTSBURGH (KDKA) — A West Mifflin High School teacher pleaded guilty Thursday to sexual assault charges for having sex with a student.

READ MORE: Police Say Juvenile Admitted To Making Threats Against McKeesport And West Mifflin School Districts

Officials say 46-year-old James Horgan, of Upper St. Clair, entered a guilty plea to one count of institutional sexual assault.

(Photo Credit: KDKA)

READ MORE: Threats Place All Pittsburgh Public Schools On Modified Lockdown Friday

In April, a female student told police she had sex with Horgan, who was a teacher at the high school, in the back of his classroom on four occasions.

According to a criminal complaint, Horgan confessed to police in an interview that he had sex with the student on three or four occasions.

MORE NEWS: Gas Smell Could Stick Around For Months After Fuel Spills Into Washington County Creek

Horgan was ordered to serve five years of sex offender court probation with 25 years of Megan’s Law registration and no contact with the victim.