A California college student used a Snapchat filter to pose as an underage girl online in an effort to catch sexual predators. The alleged predator he caught was a San Mateo police officer.

Ethan, 20, a San Francisco Bay Area college student, used Snapchat's gender-switch filter to become Esther and posed on Tinder as a 19-year-old because Tinder does not allow juveniles to open accounts, according to NBC Bay Area.

Esther was contacted by a male Tinder user.

"I believe he messaged me, 'Are you down to have some fun tonight,'" said Ethan, who did not give his last name for fear of retaliation.

San Mateo Police Officer Robert Davies, 40, began talking with the person he thought was Esther on Tinder on May 11, before the two switched to the Kik messaging app, where Ethan said Esther was 16, which "Davies acknowledged," according to a release from the San Jose Police Department.

Robert Davies San Jose Police Department

"Davies then asked her to switch to Snapchat where they also discussed her being 16 years old, and chatted about engaging in sexual activity," the release said.

"We started texting on there, and it got a lot more explicit," Ethan said.

Ethan reported Davies, whom he had determined was a police officer. San Mateo police then served search warrants on Davies' electronic devices, mobile applications and at his home.

He was arrested June 6 on suspicion of contacting a minor to commit a felony and booked at the Santa Clara County Jail.

Ethan told police that he had a female friend who had been molested as a child, which led him to want to try to catch predators. "I was just looking to get someone," he said. "He just happened to be a cop."

Davies has been placed on paid administrative leave, according to a statement from the San Mateo Police Department.

“This alleged conduct, if true, is in no way a reflection of all that we stand for as a department, and is an affront to the tenets of our department and our profession as a whole," San Mateo Police Chief Susan Manheimer said in the statement.