Indeed, it is unlawful in my (VA) county to shoot firearms, pellets, BBs, slingshots, bows, blowguns, you name it, unless you happen to own significant acreage. It's even illegal to throw a rock (if you happen to hit a house). Strangely, (massive) fireworks of all types seem to be no problem (legal or not).
However, you might be forgiven (or not charged) IF it was found you were clearly acting in self defense in all particulars (at your own risk).
yikes time to move... NO BB gun or slingshot and no throwing rocks? what is next, I just picked up sticks in my backyard and tossed them into the farmers field/fenceline area some 10 feet away. will I go to jail? You should have heard the outrage in my local small town when they banned for about 1 month burning barrels from this pandemic B.S. going on. Our 1st death did occur though a few days ago over this virus in my county was an older person who had previous health issues. I doubt he got it though from our burning barrels spreading the virus.... Funny on the fireworks part even our small town, although not enforced, does not allow fireworks during July 4th weekend, although a lot of people still do them in the streets/backyards, etc.