Hello. My name is XXXXX XXXXX I will be happy to answer your question.
I am sorry to hear about this unfortunate situation.
Unfortunately, the dogs do have to be leashed when in public or on common grounds of an HOA, even if the rules do not specifically require it and police can in fact interfere and issue a criminal citation if the dog is not on the leash, even if the dog is without a leash in the common area of the HOA.
So basically, the dog can be unleashed on your private property, as long as, it is secured by the fence and the dog cannot access common grounds, but the dog has to be kept on the lease
in any common area of the HOA.
I know this is not an answer you were hoping for, but please understand that I do have professional obligation to provide JustAnswer.com customers with correct answers, even if my answer is not favorable to the customer.
I wish you the best of luck!