Kansas undersheriff shot by suspect is released from hospital