CAPE MAY COURT HOUSE, N.J.—A Pennsylvania dentist has pleaded guilty to dumping medical waste into the ocean, causing numerous beach closures in New Jersey.

Thomas McFarland had unsuccessfully sought to enter a pretrial intervention program that would have spared him a criminal record.

Under terms of a plea agreement, the state will recommend the 61-year-old be sentenced to one year of probation and be ordered to pay the seaside town of Avalon $100,000 to offset cleanup costs.

McFarland admitted dumping hypodermic needles, cotton swabs and other medical waste into an inlet just before Labor Day weekend in 2008.

His lawyer says the dentist was distraught to the point of mental illness over his wife's lung cancer, and appeared to be acting out in "a cry for help."

© Copyright 2010 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.