He was investigated for having an on-duty affair with a teenager, sending nudes, and keeping drug evidence from suspects.