You need to equip a fire extinguisher onto one of your peas, and make sure that the spray is hitting the fire- it won't immediately extinguish the fire, but keep it up and that should do it :)