UPDATE: An earlier version of this story contained incorrect information from authorities regarding the guilty plea.

WOODBURY -- A Greenwich Township police officer accused of having sex with a prostitute while on duty last year has pleaded guilty to a charge of lewdness, prosecutors said.

William H. Dick III, 43, of Gibbstown, had faced a charge of fourth-degree obstruction, but that was amended to lewdness.

The encounter occurred at a recreation area where the pair could have been seen by children, prompting the lewdness charge, GCPO spokesman Bernie Weisenfeld explained.

He faces a sentence of probation. Sentencing is slated for next week.

Still to be determined is whether he must forfeit his job as a police officer, authorities said.

Dick was accused of committing misconduct on April 22 of last year, "by engaging in sexual acts with a prostitute while on duty," in exchange for money, prosecutors said.

The prostitute reported the incident to police. Dick later called the woman and tried to get her to recant her report, authorities said.

He was charged and released after posting $35,000 bail.

The 13-year department veteran was also suspended without pay.

Matt Gray may be reached at mgray@njadvancemedia.com. Follow him on Twitter @MattGraySJT. Find the South Jersey Times on Facebook.