With a puffer it's more likely that he had ingested some air, because that's how they 'deflate', whether with water or air. But it could be gas as well. Lol!
That was great! He looked like he was releasing natural gas! But he is asking for trouble! I bet the tank would smell and his fish friends would try to get away from the stench!