how to kill tasks using grep

Shell
kill -9 $(ps aux | grep KeyWordHere | awk '{print $2}')
Source

Also in Shell: