A bear that rampaged through a supermarket for two days was lured out with food coated in honey, trapped and was said to be due to be put down.