In reply to Frank the Husky:
As I understand it bears aren't territorial. They attack people for the following reasons:
They think you're going to steal its food.
They think you are going to stop it getting some food.
They think you are food.
They think you're a threat to their cubs.
They think you're a threat to them.
In most cases where a bear attacks a human for no reason such as this, the bear is either old, sick or injured and is starving because it can't catch enough food to live on. Normally bears just run away from humans. There's a theory that bears have evolved this way after 10000+ years of contact with humans. Those that didn't avoid contact with humans were less likely to live long enough to pass on their genes. I think there is also the occasional psycho bear of course.
In either case once a bear kills a human and realises that human actually tastes OK then it becomes a menace to us. At that point action needs to be taken. Either kill the bear in advance of it attacking someone else or inevitably it'll get killed after it attacks someone else. In this case it's quite possible the bear would have decided to pay a visit to the nearby logging camp in hope of another easy meal. While it's a shame to kill a wild animal, killing one after it has demonstrated that it is a menace to humans seems sensible and will make little or no difference to the survival of the species.
https://www.goodreads.com/book/show/423975.Bear_Attacks