The deputy allegedly engaged in the sexual encounters during June and July, according to a criminal complaint.