An inmate attacked the officers while they were conducting an "emergency cell extraction," according to officials.