The bear entered a remote community and began chasing after residents before being shot dead, police said.