Unplug the power plug of the range hood immediately and close the gas valve.
Put out the fire source with a dry powder fire extinguisher.
Cover the range hood with a wet towel to prevent the fire from rekindling.
Open the window for ventilation and heat dissipation.