Hartford police have arrested a man who was a security guard at a CREC school on sexual assault charges.

Leonardo Badillo-Perez, who was employed by the U.S. Security company, was arrested on Thursday, charged with two counts of second-degree sexual assault and fourth-degree sexual assault.

On Dec. 18, police said they received a complaint of a sexual assault that happened at the Greater Hartford Academy of the Arts.

Investigators learned that Badillo-Perez was allegedly "engaging in sexual acts while at school" with a student.

Badillo-Perez was a security guard at the Greater Hartford Academy of the Arts.

"When officers learned some sexual contact, I believe a 17-year-old and security, special investigative detectives who specialize in this type of investigation got involved immediately obtained statements from all those involved video security evidence and cell phone evidence as well," Hartford Deputy Police Chief Brian Foley said.

According to the arrest warrant Badillo-Perez and the female student began communicating in early December by exchanging notes and text messages.

Investigators say the two sent each other sexually explicit photos.

Police say it escalated in a matter of days to inappropriate sexual contact inside an empty classroom at the end of the school day.

A couple days later the female student went to the nurse for anxiety medication and told her about what happened.

Investigators say in the arrest warrant “she was hurt and felt used” and “she was freaking out” about the situation.

Police said he turned himself in to authorities on Thursday.

He was held on a $200,000 bond. According to court documents, he's expected to appear in court next month.

In a statement, Superintendent of CREC Magnet Schools Tim Sullivan said "An allegation was made of an inappropriate relationship between a student and a contracted employee who works in one of our schools. We notified DCF and the Police Department immediately. The individual was immediately relieved of his duties and is not allowed in any CREC schools or programs. CREC is fully cooperating with authorities. We continue to put safety first, and are doing everything in our power to keep our students safe."

Badillo-Perez was taken off the contract with the company in December when he was first accused.

This story is developing. Stay with Eyewitness News as more information becomes available.

Copyright 2018 WFSB (Meredith Corporation). All rights reserved.