A man used an aerosol spray to put off the fire in a pan and on the glove