A Massachusetts man has been charged with secretly filming boys in the restrooms at a Boston high school.

Federal prosecutors said Monday that 36-year-old Eric Tran Thai videotaped students at Boston Latin School while as they used stalls or urinals by holding a camera over the top of the partition between stalls or hiding a small camera inside a backpack.

Thai already faces state charges for allegedly filming in men's restrooms at Boston College.

The school district says Thai is a former Boston Latin student, and was not a staff member.

"[Boston Latin] Headmaster [Rachel] Skerritt and I are horrified by the allegations that were brought to our attention by law enforcement," interim Boston Superintendent Laura Perille said in a statement. "Safety is always our top priority, and we strive every day to make sure our students are learning and thriving in safe, welcoming, and supportive schools."

Prosecutors say a search of devices taken from Thai's home also turned up folders with labels including MIT and Harvard. The forensic analysis of those files is ongoing.

Prosecutors say officials found about 45 secretly recorded videos from Boston Latin. Thai is charged with sexual exploitation of children. His public defender declined to comment.

With reporting by the WBUR Newsroom