We have about the best 'bear proofing' available but they still come in once in a while. The one that was killed a few weeks ago was after the goats...I think but my dogs put him up a terminal tree.
I have 5 and 6 strand high tensile wire and the same type of charger that is used to hold big game animals in Africa but a hungry bear will take it if really hungry.
The two bear that were taken today didn't come through for food...the hounds were pushing them hard and luckily, a couple of the best dogs came through the fence too or they would have likely made a get-away.
I think I'll stick with my coyotes - they're more my size. LOL. A gun takes care of the coyotes and I run around looking like an idiot yelling and waving things in the air to get the hawks to move on. Thinking that wouldn't work well with a hungry bear.