22 caliber and hiking

i one time managed to scare the heck out of a black bear with a flare gun while we were on a camping trip . im not sure if it was the bright red light coming at him or the pain of it hitting him in the face but either way he ran far enough away to give us time to get our butts outta there lol