Sheriff's Department ordered by state to release inmates due to pandemic