A Suffolk County village court judge accused of shoving a prosecutor has resigned from the post, a judicial disciplinary commission said Thursday.