When trying to put out an electrical fire:

B and C type fire extinguishers are designed to work on electrical fires. Water should never be used to extinguish an electrical fire because doing so could result in an electrical shock.
DMV Writen Test