Generally using the correct fire extinguisher is your best bet
You can put metal in the refrigerator but not in the microwave where it could cause a fire.
I would put out fire safely in a science lab by spreading Carbon di oxide gas on the fire
The large majority of fires can be put out safely with water. The exceptions are electrical, grease, or some super heated metals.
jj
Fire retardent would cut off the necessary oxygen for the fire to continue and hence the fire will be put off.
how do safty shower put out a fire
switch off the main switch and use sand to put off the fire
If you put a battery or a cell in a fire, it could explode.
"My son liked to play with a fire-fighter's helmet" and "It was the fire-fighters' opinion that the fire could be put out" (several of them) and "it was the fire-fighter's opinion that the fire could be put out" (just one with an opinion).
Theoretically, you could, but it would be extremely dangerous to do so unless you have the proper training and specialized equipment to safely process and collect it. The vapors are (unsurprisingly) extremely flammable, and the slightest spark, even from static electricity, could set it it off and make it explode. Plus, gasoline fumes are harmful to breathe in.
foam fire extinguisher or a fire retardant spray
Smother it- cutting off the air from the fire.