In the state I live in you in the scenario you have described you will get jail time at least 2 years for committing a felony for firing the gun plus more time.
Gun laws have been changed to allow people to carry guns to defend themselves not act to stop, detain, contain or apprehend persons commuting crimes. You can and should act only if that violent act is directed at you and no other means of escape are available to you. Now we know all of us would break that law to protect our family. For me I would not use deadly force to protect property.
Your scenario is a le issue to me nothing about what you describe would to me be a wise choice