"If you surprise a bear, especially one with cubs or on a food cache, it may react in a threatened or defensive manner," the department said.