I don't know the situation of the area where you live or your state laws - but here, when we have a problem bear, we call Game and Fish. One neighbor had a bear kill a lot of her goats. The bear came back the next night, but she had stayed out there with the goats and was able to run it off with her dogs. (She had a gun too, don't worry, I have sensible neighbors.) The next day they came and set a trap for the bear, trapped it and did whatever. (They relocate some, they tag bears they catch and if they keep catching the same bear they humanely put it down.) Then another neighbor had their chicken coop smashed in and a lot chickens killed; and that was a real sturdy coop. That bear would not leave their house, was trying to push the glass windows in with its paws. They called us, DH went over to help but nothing worked. They called G&F, they said, shoot it! So that's what happened. G&F came to get the body.
This was due to the drought. I live right next to the National Forest so there are bears here. The bears were starving and desperate so they were coming down around the houses to try and find food. This is sad for the bears, but the way it's set up here, bears that are coming around people a lot, killing things and breaking things, are considered a problem and are dealt with. It could very well be different laws where you live but it does not hurt to call G&F and ask.