Some insects like the Pea aphid can explode themselves to frighten or kill enemies. They have been observed doing this after being eaten.