Sheriff: inmate who died got inadequate treatment