Actually, the metaphor is rather antiquated, in that nowadays guns emit hardly any smoke, and it
dissipates very rapidly.
The old nitrate test used to show that the hand of the shooter had chemical traces of the explosive
on it. I don't know if that test is still used.