Kansas undersheriff charged in man's death