The brown bear, which was about two years old, had repeatedly headed into inhabited areas to look for food and had started to follow people.