You can use pkill or killall command to kill all processes of a user. When you run these commands, the user will be logged out and all his/her processes will be killed.
E.g.
$ pkill -U UID
$ pkill -u UID
$ killall -u USERNAME