GREENWICH TWP. -- A Greenwich Township police officer has been charged with misconduct and witness tampering after he allegedly had sex with a prostitute while on duty, according to the Gloucester County Prosecutor's Office.

William H. Dick III, 42, of Gibbstown, committed misconduct April 22 "by engaging in sexual acts with a prostitute while on duty," in exchange for money, prosecutors said.

The prostitute reported the incident to police, authorities said.

Dick allegedly called the witness and attempted to have her recant her initial report when he thought there would be an official investigation.

Dick appeared with his lawyer at the prosecutor's offices on Friday for processing and was released after posting $35,000 bail.

The officer has been suspended without pay from the department where he's worked for 13 years and is scheduled to appear in Central Judicial Processing Court in Woodbury on Oct. 27, according to the prosecutor's office

Dick's attorney, John Eastlack, did not immediately respond to a request for comment.

Caitlyn Stulpin may be reached at cstulpin@njadvancemedia.com. Follow her on Twitter @caitstulpin. Find NJ.com on Facebook.