A search for an inmate is underway after the sheriff says he was mistakenly released from the detention center.