They are very volatile. Even if you hit them with the right element, if they take any other damage they will be switched on again. When you have several of them clumped up together it's near impossible to switch all of them off because they will chain damage one another. I think moving them triggers them too. Just throw/teleport them far out of your way and move on, or just run past if you can.