The friction caused by the gas bubble pushing up the pipe and displacing the drilling mud used to control the pressure could have created a static charge that ignited the gas into a fireball.
Given the two red flags that had been thrown up previously, one would have expected that as a precaution a cement plug would have been placed somewhere in the wellbore as a secondary pressure seal before this primary pressure control system (heavy mud) was evacuated from the wellbore.