The match heats the air, which expands and takes up more room. Some of it escapes. Once the fire has used all the oxygen in the bottle, it goes out, thus the air cools and contracts. It now takes up less room. This makes the pressure lower inside the bottle than outside the bottle. The higher pressure outside the bottle forces the egg down into the bottle.