afrostegirl-- Pepper spray may be legal in your state, mace is probably not. If you are apprehensive about legalities, try 1/2 vinegar and 1/2 water in a spray bottle that has a powerful stream. Aim between the eyes or at the head in general, it is very unpleasant if it gets in or on mucus membranes like eyes or nose. It is not as effective as pepper spray but will deter the casual canine intimidater, and is neither illegal or harmful in any lasting way to the animal. If a dog is determined to take you on, there isn't a whole lot that will stop them, including another dog. The only way your dog could stop an attack is to engage the other dog, which your beagle obviously did. In our area there is a leash law, so if my dogs are on a leash and they or I am attacked by a loose dog, the owners are technically liable. Proving it is something else. I also would not hesitate to call animal control or the local police if this occurs again.
Stella