Animals can defend themselves against their natural enemies in various ways. Well-defended species often share conspicuous body colors with other well-defended or undefended species, forming mimetic interactions.
Click here for original story, Bombardier beetle vs. assassin bug: Mimetic interactions via a shared enemy
Source: Phys.org