An Albany-area police officer is facing sodomy charges over allegations that he had sexual relationships with two teenage girls, and engaged in sex acts at two cemeteries and the parking lot of an elementary school.

Watervliet Police Officer Joshua Spratt, 34, is an Iraq war veteran and a married father of three. He served on the force for 10 years, and spent the past two as a resource officer at Watervliet High School where his job was to promote student safety. By all accounts, he was a model cop, the Albany Times Union reports.

On Monday, all that changed when Spratt was brought before the state Supreme Court, and pleaded not guilty to a seven count indictment.

Spratt is accused of using his position working closely with students to pursue relationships with the girls. The allegations include four counts of third-degree criminal sex act for having oral sex with one of the girls, who was 16. He also faces misdemeanor charges of child endangerment and official misconduct, since the second girl was 17 and legally allowed to consent in New York State.

The acts allegedly took place at cemeteries in Watervlet and Menands, on third avenue in Watervliet, and in the parking lot of Watervliet Elementary School between February and April of this year.

"There's three victims, only one that legally we can pursue on the criminal sex act and that's the individual who is under the age of 17," DA David Soares told CBS 6 Albany. The third student is a 17-year-old witness, according to Soares.

Watervliet Schools Superintendent Dr. Lori Caplan told ABC News 10 that the accusations were an "egregious betrayal of trust". She said rumors about Spratt's alleged trysts came to her attention near the end of the school year.

"As soon as the rumors hit my desk, I spoke with the chief of police," she said. "The Watervliet Police Department turned the case over to the New York State Police."

The district has assembled a "Crisis Team" to counsel students this summer, according to an official statement.

"As always, our primary concern is for the safety and well-being of students," the statement read. "Our focus over the next few weeks will be helping them to come to terms with this betrayal."

Supreme Court Justice Thomas Breslin issued three orders of protection for the two girls and the witness at Spratt's arraignment on Monday. Spratt was released on $50,000 bail.

If convicted, Spratt faces 5 1/3 to 16 years in prison, which is the legal term for sodomy, according to the Times Union.

The evidence against Spratt includes phone communications, text communications and videos, according to Soares. He has not ruled out the possibility of more charges or more vicitms.

Soares is urging students, parents, victims or anyone else with info to contact State Police.

Watch the WNYT-TV video below.