It will depend on stat, the circumstances, and how the court interprets the law. But yes, they can sue and potentially win. Same as a homeowner shooting an intruder... Burglars have rights, you know.
Beware of dog signs should give homeowner a good case. Always keep pups up to date on rabies and compliant with local laws.