A teacher from Pinal County was arrested after authorities apparently witnessed her having sex with a 14-year-old former student, according to the Pinal County Sheriff's Office.

Andrea Martinez, 26, was taken into custody on suspicion of child molestation and sexual contact with a minor.

Officers in Stanfield noticed an SUV pulled off the road at 10:40 p.m. Wednesday near members of the Gila River Police Department, according to a statement from the Pinal County Sheriff's Office. Using night vision goggles, the officers noticed two people apparently having consensual sex.

The woman and teenager then left the SUV and began to argue before officers made contact, according to the statement.

Authorities said they later learned the male was 14 years old and the woman was Martinez, a teacher with the Stanfield Elementary School District. She was the teen's former teacher. According to the statement from the sheriff's office, Martinez and the boy told deputies they were having sex in the vehicle.

The boy said they also had sex a month earlier, according to the sheriff's office statement.

The Stanfield Elementary School District was notified of the arrest and is cooperating with the investigation, authorities said.