I read a similar story in a book about bear encounters in Alaska.
One guy killed the bear with a 22lr pistol while the bear was about to eat his arm.
Another guy drew and fired a few shoot before he knew what had really happened and had killed a bear that had rushed him.
Scary stuff, pray that this never happens to you