The nicotine in the smoke coats the antennae of the bees. (The antennae is the same as the noses of other animals. The organ that smells odors.) Without the scents or pheromones to guide the bees, they will become confused and eat.
If you smoke yourself, you hide your scent and the bees will ignore you.
Hope this clears up some of the misunderstanding.