Pumping BASF Foam from the surface to the No. 4 Entry of No. E Panel Inby Spad 16503 to seal off entry. At approximately 10:46 AM, the foam seal started smoking and then started flaming from the right to the left side and the flames and fire went inby down the entry approximately 200'. It took several fire extinguishers, water and the foam generator to put the fire out.