Updated

Authorities say a Florida middle school teacher accused of producing and receiving child pornography has killed himself in Tennessee.

Metro Nashville police announced on social media Friday that 33-year-old Corey Perry died at a local hospital after a gunshot wound to the head. Police say Perry appears to have shot himself at a Nashville motel just before FBI agents arrived to arrest him.

Officials with Palm Beach County Schools have not said whether any of Perry's victims attend Howell L. Watkins Middle School, where he taught computer science. Officials have confirmed that some of the identified victims attend Palm Beach County schools.