A former teacher at Burton Adventist Academy has been arrested after confessing to having a relationship with a 13-year-old student, according to police documents obtained by The Dallas Morning News.

Carlos E. Rodriguez, 36, was being held Wednesday on a charge of sex abuse of a child. His bail was set at $25,000.

“The school and church have been very cooperative in this case and were very helpful throughout the investigative process,” said Tiara Ellis Richard, an Arlington police spokeswoman.

According to the police documents, a senior pastor at Arlington Seventh-Day Adventist Church contacted Child Protective Services a couple of months ago with concerns about Rodriguez and the girl.

CPS determined that there was not enough information to prove there had been an inappropriate relationship, but Rodriguez did resign from the school, which is affiliated with the church.

In early April, a friend of the victim pretended to be Rodriguez and sent text messages to the girl. The girl sent back messages indicating that she had had sex with Rodriguez. A short time later, the senior pastor alerted authorities.

Police interviewed the girl on April 23, and she told police that she and Rodriguez had had sex three to four times between late 2012 and March. The following day, Rodriguez told investigators that he had started out as a “mentor, teacher and coach for the victim” when she was in the seventh grade.

“Over time the suspect fell in love with the victim and their relationship became inappropriate,” according to a police document. “The suspect confessed to having sex with the victim 3-4 times.”

He told police that they had sex for the first time in a gym closet at the school and for the last time in March in her bed at her home.

“The suspect claimed that he was truly in love with the victim and he wanted to marry the victim at some point in the future,” one document says.

According to documents, Rodriguez and his wife separated as a result of his relationship with the girl.