The world is big and varied, but sometimes there just are not enough unique chemical compounds to get around. A particularly interesting example of an overlap of chemical compounds can be found in the world of bananas and honey bees. In particular, the chemical that gives bananas their pronounced banana odor: isoamyl acetate.
This strong-smelling chemical compound not only provides the scent of bananas, but is also an alarm pheromone used by honey bees. If a honeybee attacks an attacker in the hive or otherwise uses its sting for self-defense, a burst of isoamyl acetate is released from the sting to alert other bees to the attack.
Since the chemical in both bananas is identical and the stinger pheromone you can (of course at your own risk) with banana peels against honey bees act.