A man working in the Maricopa County jails ended his own life after he was accused of inappropriate sexual behavior with an inmate, officials say.