I lost a little over half of a cog
last winter. After I got home I could wiggle the remainder of the cog with a pair of pliers. My guess is that yours snapped harder then mine and ejected both pieces from the cassette. Although I was cranking on the gear that broke, where it sounds like you weren't in the gear that broke?