D.C. Council candidate Kevin B. Chavous agreed to avoid the unit block of K Street NE and perform community service as part of a deal to have a misdemeanor charge of soliciting a prostitute dropped.

At a hearing Tuesday morning in D.C. Superior Court, prosecutors agreed to defer charges for four months. Under the deal, the charges will be dropped if, during that time, Chavous performs 32 hours of community service and stays away from the block of K Street where he was arrested in December.

Chavous, a Democrat, is seeking the Ward 7 council seat now held by Yvette M. Alexander (D) and once held by his father, Kevin P. Chavous. According to court documents, Chavous offered an undercover police officer $20 in exchange for oral sex in the Dec. 16 incident.

He pleaded not guilty in early January and vowed to continue with his campaign.

Chavous, 27, declined to comment on the case after the hearing. His attorney, David Benowitz, said prosecutors approached them with the deal.

Another hearing in the case is scheduled for May 23.