The fact that smoke calms bees has been known since ancient times; however, the scientific explanation was unknown until the 20th century and is still not fully understood.
Smoke is of limited use with a swarm, partly because swarms have no honey stores to feed on.