1. Check for a list of running sessions by typing the following;
QUERY USER /SERVER:servername
This will list all current session on that server. Record the session ID for the session you want to kill. Then
2. RESET SESSION sessionID /SERVER:servername
This will close the user session. You can also use LOGOFF SESSION instead if you want to logoff the user.