That's somewhat incorrect. Their stingers have barbs that get stuck in skin and the like and pull out their organs when they try to extract, but that was because it evolved to pierce carapace, not skin. They can sting other insects without dying.
Also, as someone else pointed out, some bees, like bumblebees and carpenter bees,have smooth stingers that do not get stuck in skin.