The above video demonstrates how to extinguish flame from LPG gas cylinder tube.
If accessible, first we should close regulator of the cylinder to prevent continuous gas supply. We should also remove other ignition sources like, open flame, lighted incense stick, cigarette, etc.
We can keep wetted bed sheet or towel over the cylinder covered fully to avoid flashback fires.
This link takes to a cylinder leak and Fire in a house.