Last bear we had was a grizzly sow with cubs, and she was so use to people that with me 5 ft away yelling a lot of BAAAAAD language and waving arms at her I didn't even get her to acknowledge me....
Coop lights and farm lights didn't work, radios on loud in the coops didn't bother her either and her way of dealing with electric fence was busting thru it at top speed(and we use e-fence designed to keep bulls in check). Had her less then 3 feet from me sniffin at me @3 am one morning. I was seriously glued to my chair since I could hear her panting and her fur brushing at the fence but she was on the otherside of the fence then I was and it was pitch black on that side..... and I didn't want to accidentally shoot a horse so shooting blindly in the bears direction was a no-go.
She liked to go into our feed room(after tearing the door off) and take the feed bags and spread them on the ground and lick it up... she really liked layer pellets.
Mind you that was after she killed 90% of my flock(165+ birds from gamebirds/exotics to chickens and waterfowl). Ended after 2 weeks with me putting a bullet in her from less then 10 ft because she tried to break into the last of my enclosures and ignored my attempts to chase her off(@ 2 am - me yelling at a 7ft griz with young cubs in my pjs with a rifle in hand... I had enough, if the rifle would have jammed I would have used it like a club, I was so ticked)....
Black bears I think would respect e-fence a bit more tho, that may be a good deterrant. Looks like its a youngster the way he works the feed bin, an adult would tear right in, but if you got a juvenile that just left mom he will be a bit clueless, probably hasn't even figured quite yet that there are chickens to be had. A youngster is easier to train to stay away too, they are more "impressionable".