To shoot your hiking buddy in the foot...
In actuality if you shot your buddy in the foot and kept running the bear is more likely to chase you than bother with your buddy.