If a gas cylinder catches fire, stay calm and alert others. If it's safe, turn off the gas supply by closing the valve using a cloth to protect your hand. Evacuate the area immediately and call emergency services. Do not use water on the fire; instead, use a fire extinguisher if available and safe to approach. Keep everyone at a safe distance until professionals arrive to handle the situation. Safety is the top priority.