Sergeant accused of sex misconduct keeps certification