A controlled fire would be easier to aim at, so a candle.
water
Assuming the fire is caused by an electrical problem, you would need a class c extinguisher.
the best fire extinguisher for high voltage is a c extinguisher because it can put out electrical fires
A carbon dioxide (CO2) fire extinguisher is best for putting out a computer fire.
Baking Soda & Class-C or ABC Fire ExtinguisherIf a fire extinguisher is not available and the fire is small, dousing it with enough baking soda can put it out. If you have one, use a class-C or multi-purpose ABC fire extinguisher to put out the flames. You can not use any other kind of fire extinguisher on an electrical fire (the extinguisher should be clearly marked, but if it's not and you're not sure what kind it is, don't use it)NEVER-EVER-EVER-use water on an electrical fire as it could cause electrocution-use a class-A fire extinguisher on an electrical fire.
A type b extinguisher puts out a class B fire, i.e., flammable/combustible liquids and gases.
the best way to put out a fire is to either get a fire blanket and cover the fire or get an extinguisher
Burning liquids such as gasoline, kerosene, paint, acetone, and so on.
A "Class A" fire- ordinary combustibles, such as wood, cloth, or paper. If it leaves an ASH, its an A.
Extinguish means "put out", so a fire extinguisher puts out fire.
a fire extinguisher can put out a fire