They can aggro on Mammoths, but will never attack the Mammoth it is targeting. This means that if an Insect Swarm aggros on your Mammoth, they'll hover around it until they drop down dead on their own. There may be other non-Bog creatures that do this, but at least try using your Mammoth as a mosquito candle sometime!

More Insect Swarm Encountering Tips