A Texas middle school counselor turned herself in to police after a student’s mom allegedly caught her in bed with her teen son, according to authorities.

Shannon Hathaway, who was employed at Harwood Junior High School, was booked Thursday on charges for an improper relationship between an educator and a student, the Fort Worth Star-Telegram reported.

The Bedford Police Department issued a warrant for the 33-year-old counselor Wednesday due to her alleged relationship with a ninth-grade student.

Authorities said the pair was sexually involved until the 17-year-old student’s mother walked in on them naked in bed.

Police contacted school officials in May about the allegations and the counselor was placed on paid leave, news station DFW-TV reported.

Hathaway reportedly resigned before surrendering Thursday to authorities.

The school district notified parents Thursday in an automated call.

“There is no evidence to suggest the alleged behavior happened on the Harwood Junior High campus,” Superintendent Steve Chapman said, according to the Fort Worth Star-Telegram.