I think what your friend advised is incorrect, or they are very lucky. According to "Bee and Wasp Stings" from the University of California Davis, they specifically state:
> Unless someone accidentally collides quite hard with or swats at a bee or wasp, it is not likely to sting.
Also, if you swat at some species, they are likely to become agitated, making the situation potentially far worse.