Probably soaked the whole rag in gasoline instead of just the edge of it. Went up instantly and the bottle exploded. Still wonder why he lit it in his apartment.
Also: you’d better fill the bottle. A pocket of oxygen-containing air in the bottle can be bad news, too.