A nonattorney Western New York judge resigned amid allegations he sexually harassed a court clerk, the state's judicial misconduct watchdog said Monday.