From the usage of smoke by illusionists in order to deceive and misdirect. Attested since 1840. Compare German blauer Dunst.
slå blå dunster i ögonen (literally: "strike blue hazes in the eyes")