How does smoking cause vomiting?

Smoke can directly stimulate the pharynx and excite the vomiting centre to trigger vomiting, which is a form of reflex vomiting.