I have to deal with intrusive thoughts a lot. My thoughts are not of violence to others, though. My thoughts are about self harm. This is a pretty common trait of depression. What I was taught to do with them is to face them. It is not pleasant, but they are not as scary as you think they are going to be. Then I talk to myself and tell myself that I am not going to do them for real, and that it is time to think of something else. It often takes many attempts to have an effect, but eventually, the thoughts go away.
One thing not do is to try to block them out. This does not help. In fact, it makes them worse.
_________________
"Like lonely ghosts, at a roadside cross, we stay, because we don't know where else to go." -- Orenda Fink