Kansas undersheriff faces trial in fatal beanbag shooting