Former sheriff's office guard accused of having sexual contact with inmate