It might be her thyroid. Thyroid problems are common in Beagles, and seem to pop up in a dog's senior years. Thyroid problems can cause behavioral changes so I'd get a test on her ASAP. Meanwhile I would keep them separated to avoid injury.