Ex-prison supervisor pleads guilty to violating civil rights