A New York City police officer is accused of raping a teenage student in his martial arts school during a sexual relationship he claimed was one of the school's rites, police said Friday.

Middletown police said Trent Young, 39, sexually abused and then began having sex with the 15-year-old girl, a student at Iron Tiger Martial Arts in West Milford, N.J., in 2005.

Young, who also teaches karate at his Middletown home, was arrested Thursday on his way to work and charged in Orange County Court with felony counts of second- and third-degree rape, police said. He was free on bail Friday.

The girl told police she'd been a student at Iron Tiger for a year when Young asked her to sign an oath of obedience in 2005. She told police that Young made her take off all of her clothes as part of the oath, and then sexually abused her. She said he then told her to get dressed and that the encounter was part of a test.

Young then began a sexual relationship with the girl, leading her to believe it was part of the karate school's program, police said. Young is accused of having sex with her 20-40 times at various locations, including his home and at the school.

Investigators said Young told a second 15-year-old to take off her clothes as part of her obedience oath, but she refused.

There was no answer at Iron Tiger Martial Arts Friday and police were not sure who is representing Young in court.

The New York City Police Department declined comment Friday, but Middletown police said Young has been with the NYPD for nine years and worked in the 26th Precinct in upper Manhattan.

In New Jersey, Passaic County Prosecutor James Avigliano said his office had no information about the case.

Avigliano said he expected that New York authorities would soon contact his office.

West Milford police had no immediate comment on whether they were aware of the charges.