A 49-year-old Phoenix schoolteacher told investigators she lured a 14-year-old student into a Tempe hotel room and had sex with him to keep the boy from sleeping with her goddaughter, according to Maricopa County authorities.

Criminal charges filed Tuesday against Rosanna Encinas Brown accuse the Pastor Elementary School teacher of three Class 2 felony counts of sexual conduct with a minor, a dangerous crime against children.

"Brown admitted to having sex with the victim to prevent the boy from having sex with his girlfriend, whom Brown claims is her goddaughter," County Attorney Andrew Thomas said.

The 14-year-old accuser told sheriff's deputies that Brown sent a text message to his phone on Jan. 31 claiming to be his girlfriend, according to a probable-cause statement. The boy stated Brown lured him into a darkened Tempe hotel room where the pair had sex.

Afterward, the boy said that when he opened his cellphone the light from the phone revealed that the other person in the room was his teacher.

The boy said he left the room and called his mother, who then rushed to the hotel and called 911, according to a probable-cause statement.

Sheriff's deputies responded within minutes and arrested Brown.