You carry a freaking GUN!
This was a totally unnecessary death. Totally! Bears are not going to be moved by humans wielding sticks, but as noted later a small caliber gun was fired at the bear and it took off.
A word of advice, dont use your first shot on the bear, shoot to the side so that the noise of it might scare it off.