A former Mesa Ridge High School teacher confessed to police that he had sex on two occasions with one of his female students while she babysat at his home in Colorado Springs, according to an arrest affidavit.

Roger Thomas French Jr., 31 , told police that he was "ashamed" and made "judgment errors," the affidavit stated.

French said the student was in a science class he started teaching in October and the relationship began in November, when he met her at her job and the two kissed for the first time, the affidavit read.

In December, the girl started babysitting for French's roommate's kids, and he told police he and the student had consensual sex on two separate dates, the last being New Year's Eve.

School staff overheard some of the girl's friends talking about details she had shared of her alleged encounters with French, according to the affidavit. Although Mesa Ridge High School falls under the county's jurisdiction, the alleged encounters occurred in Colorado Springs, so Colorado Springs police became involved.

French resigned from his position Thursday, the same morning school officials notified him that he would be placed on administrative leave. According to the affidavit, French told school officials that he was "not good for this position," and was later arrested on suspicion of sexual assault on a child by one in a position of trust, court records show.

"It wasn't good, I got too close to her. It wasn't going to work," French was quoted in the affidavit as saying to school officials. "I made judgment errors, one thing led to another and now I am sitting here. It is going to end like this anyway. I could see it happening right in front of me. I kept pumping the breaks, I couldn't stop, it's like I am going off a cliff."

The Mesa Ridge High School principal sent out a letter to parents informing them of the allegations, and police released a statement Thursday saying they do not believe there were any other victims.

Widefield School District 3 officials issued a statement Friday confirming French resigned and the district was cooperating with law enforcement during the ongoing investigation.