Sounds like he was confused, and smitten.
Check it out:

A member of former Mayor Michael Bloomberg’s anti-gun group Mayors Against Illegal Guns has been sentenced to up to 20 months for discharging his firearms to intimidate a man to whom he had an attraction. It seems that he took Vice President Joe Biden’s advice, which is also a violation of gun laws. Although, I think we can all agree that we shouldn’t take advice from folks who don’t know gun laws. Yes, we’re looking at your Mr. Vice President.

So, in all, you can go to prison for firing your weapon into the air to warn of would-be attackers – even in a state like Florida that has a “stand your ground” law.