When you squish an ant, they’ll release pheromones, which will attract other ants. Usually, this chemical (pheromone) is released to warn the other colony member of impending danger.