He didn't have to shake the bottle to get that reaction. He just needed to wait for the bottle to get cold. I used to work at a place that used dry ice and people were warned about sticking their pop bottles into it to keep it cold. Plastic bottles were fine but glass explodes. One guy nearly lost all of his fingers on the one hand when he forgot.
I am guessing that he had been waiting. He puts the dry ice in the bottle. Carries it outside. Waits... Waits... Waits some more, and then gets impatient... Gives it a little shake to help speed things along... And, well, now we know the rest of the story.