You do not, at least not on your own. Once a Smoker has you by the tongue, the only way out is help from a teammate, unless a glitch happens to release you.
A teammate can shoot the Smoker, or shoot the tongue itself, but the more reliable play is to run up and shove the ensnared survivor free. Attacking the tongue directly with a melee hit works too.
So the practical advice is to stay close to your team and keep an eye out for the tell-tale smoke trail, because being isolated is what actually gets you killed.