Airi has already answered this but because I understand this forum is laden with ESLs from all over the place: please do not douse a fiery saucepan with water, and most certainly do not toss water over a greasefire and to sizzling, smoking electronics. In fact ideally, you'd want to bury a fire under dry sand but such a thing is impractical.