That is an example of why it is suggested that you do not feed wildlife, they can be as possesive as the orneriest kid and when you turned away, you ignored it and it got angry.
Forget BB guns, a pellet gun might be OK but a .22 revolver would be better. I say revolver because you can load with shorts or shot if you desire or heftier stuff if appropriate.