Prosecutors say a New York City police detective accused of forcing a 13-year-old runaway into prostitution has resigned from the force and pleaded guilty to attempted kidnapping.

Wayne Taylor initially said he was "100 percent innocent" of keeping the teen as a captive and compelling her to sell herself at parties last winter.

But Queens prosecutors say the 35-year-old officer and 29-year-old accomplice Zelika Brown pleaded guilty to the same charge Thursday. They face 3 1/2-year prison terms.

Brown also originally contested the charges. Her lawyer challenged statements authorities said she made to them.

Prosecutors say about 20 men paid Taylor and Brown $40 to $80 for sex with the girl.

Taylor was an officer for about 14 years.