Send SIGTERM (signal 15) signal to all process whose username is "username" and whose command is "your_command".
ps -o uid,pid,cmd|awk '{if($1=="username" && $3=="your_command") print $2}'|xargs kill -15