In an ideal world you would have a specifically designed fire extinguisher securely located in your car for emergencies.
However, if you do not have extinguisher, In an emergency, a can of beer or soft drink, well shaken, can act effectively as an emergency fire extinguisher.