One would assume you have a gas leak the build up of gas when you attempted to light hob then ignited.
Turning of the isolation tap may not of stopped this it could be on or before stop tap.
Also disconnecting hob would result in an open end at stop tap big no no !