Follow CBSMIAMI.COM: Facebook | Twitter

HUDSON (CBSMiami/AP) — A Florida teacher was arrested after violating a student’s privacy and trust.

READ MORE: Court Unblocks Order Lifting CDC Virus Rules On Cruise Ships

Investigators say the teacher confessed to secretly videotaping a high school student as she changed her shirt.

Pasco County sheriff’s officials say Fivay High School English teacher Thomas John Kovack was arrested Friday on a charge of video voyeurism.

Investigators say a 17-year-old girl went into a closet to change her shirt for a class photo when she noticed a cellphone was videotaping her.

READ MORE: Florida's COVID-19 Cases Climb Sharply Once Again

She looked at the phone and found video of Kovack placing the phone in the closet and her undressing. She deleted the video and reported Kovack.

Investigators say the 38-year-old teacher admitted placing the phone in the closet, knowing the girl would be undressing there.

He was released on $5,000 bond. Jail records do not show if he has an attorney.

MORE NEWS: Broward Health ICU Head, Dr. Sunil Kumar: 'We Have Had Children Die;' COVID Cases Continue To Spike

(© Copyright 2018 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)