Yes, but then you don't have an excuse to spend research budget on a kawaii robot dog. You can just pick a standard bear spray from a hiking shop, mount it on any existing drone platform that can handle the weight (land or flying, doesn't really matter) and you're done. Probably would be more efficient, but where is the fun in that?
Actually, scratch the bear spray part. I suspect that standard tear gas grenades that police uses against the rioters would work just as well on bears. Idk, maybe you'll need to up the concentration of the active compound a little bit or just drop several grenades at once.
And we all seen how easy is it to jury-rig a cheap drone to drop grenades.
Literally dirt cheap, no research required, people are saved from bear attacks, bears are scared and annoyed, but otherwise unharmed.