Exactly. He could have shot at the ground in an attempt to scare the bear away. Throwing his pack at the bear and the bear finding food inside does indeed teach the bear to associate humans with food.
I didn’t see anything to indicate he had a gun with him.