I think Kenny was like, "Oh shit! Were all doomed, South Park is history, everyone's gonna die! What's the fastest way for me to end it all?"
Of course I'm sure they were going for irony, because on first viewing Kenny's death stands out enough to be incredibly jarring.