While cutting towards the headgate with the longwall shearer, a rock scour was encountered. Sparks from the cutting drum apparently ignited hydrocarbons coming from the roof resulting in a fire. The fire was extinguished in approximately 30 seconds by the fire suppression system and a water hose.