People had fed the bear several times, and it was becoming a safety risk for park visitors in Wyoming, officials said.