Shoot them, idiots will follow you forever. Blasting them with a rocket launcher works too just don't get too close

More Titanomyrma Encountering Tips