In the event of an electrical hazard or an electrical fire, first unplug the power cord. (For shutdown instructions, see Powering a Services Router On and Off.)
Then, use a Type C fire extinguisher, which uses noncorrosive fire retardants, to extinguish the fire. For more information about fire extinguishers, see Fire Suppression Equipment.