Did you stop the SSH service and then try to delete the user account?
sudo service ssh stop or sudo /etc/init.d/ssh stop
Otherwise if you can not do that because you’re accessing the machine remotely try
snice -u [user name]
To see if the user is connected to your machine and if so run the following to disconnect it.
skill -KILL -u [user name]