I understand that killing or maiming another animal is unfortunate and to be avoided if at all possible, but it is frequently not possible. Bears are intelligent enough to be curious. They will check things out just because. This is especially true of juveniles who haven't learned to respect man. Older bears or those that have been injured or become sick have an air of dangerous desperation about them. They are unable to chase down faster game or compete with younger, stronger predators for food sources, and so squishy, slow, hairless humans begin to look more appealing. And all bears get desperate to put on weight in the fall. This leads to more encounters between bears and humans as bears cross fence lines and brave more urban settings in search of food. Fruit trees in the yard, dog food on the porch, the grease on your grill in the patio, the leftovers you threw in the trash can in the driveway; bears smell this from a good distance away and can't afford to say no. They have a long winter to prepare for.
Our family has killed several nuisance bears on our property over the years. As mentioned, bears can be potentially aggressive. They can be a danger to pets and children, especially. They will damage your property, including doing a number on your trees. My dad shot a bear a few years ago after he woke up to it breaking the plum tree in half. You can choose to ignore the problem or treat it with kid gloves, but it only encourages the animals. You have to nip it in the bud before it gets out of control and someone other than the bear gets hurt. If this means the bear dies, that sucks. But it is better than having a grandson or nephew dragged into the woods, or losing a pet. Bears and people don't mix. We are competitors on the food chain competing for the same resources. This leads to conflict. They look cute and cuddly, and some of them, like the black bears, get a pass by some because of this, but they are not pets or play things. They are opportunistic predators. They are explosively fast and can be unpredictable. You have to treat them with respect. This means having something considerably more powerful than birdshot available in case you have to lay the smack down.
Again, nobody likes having to do it. Those of us who live in rural areas usually do so because we enjoy nature. But we also learn through constant interaction with her that Mother Nature is at times harsh, even cruel. Living in nature demands you be tough enough to make the difficult decisions necessary to ensure the safety and survival of you and yours. When fences and peeing and spot lights and loud noises fail, there's the 12 gauge slug or a 180 gr JSP from a .30-6.