It can be many reasons for that event. It must have been gas presence. The sources can be: 1) gas leak from a domestic line
2) Underground gas trap is often found in boreholes it´is normally because anaerobic bacteria produce Methane by descomposition of organic matter in wastewater .
And
The triangle fire needs to ignite: heat, fuel (gas in this case), and an oxidizing agent (usually oxygen).
Generally drinking water tube well depth is about 80feet to 500 feet depends upon location. Near river or canal water meet easily at low depth otherwise numbers of layers found having rock layers also. the volume of gas locked up in the rocky layer beneath the tube-well's water source is limited. The lock gas in the rocky layers got fire by friction or small spark. This gas like natural gas having maximum methane and also produced by anaerobic activities of bacteria.
A source of water supply can be identified at any of the above stages of water cycle, provided it can supply in sufficient quantities for most periods of the time in a year. Thus, water supply for rural communities can be organized with use of rainwater, groundwater, and, spring and surface water.