Looked like it had a hurt leg. And it was apparently following a female bear. Probably had a fight and won a mate and was protecting it. Pain and mating instincts combined make for a really erratic and dangerous animal. Also, they weren’t shooting to kill it. They shot it with rubber bullets and used popper rounds (not sure what they’re really called. But they just make noise) to scare it off.