Prosecutor accused of misconduct in beating case