WEAPONS ACT 1990 - SECT 78 Weapons not to be discharged or operated - a fine- but also usually, a range of offences related to use, possession, storage of the weapon and ammunition
CRIMINAL CODE 1899 - SECT 69 Going armed so as to cause fear (1) Any person who goes armed in public without lawful occasion in such a manner as to cause fear to any person is guilty of a misdemeanour, and is liable to imprisonment for 2 years.
469 Wilful damage (1) Any person who wilfully and unlawfully destroys or damages any property is guilty of an offence which, unless otherwise stated, is a misdemeanour, and the person is liable, if no other punishment is provided, to imprisonment for 5 years.
Punishment in special cases 1 Destroying or damaging premises by explosion If— (a) the property in question is premises; and (b) the destruction or damage is caused by an explosion; and (c) either— (i) anyone is in or on the premises when the explosion happens; or (ii) the destruction or damage actually endangers anyone’s life; the offender commits a crime. Penalty— Maximum penalty—life imprisonment.
but what you will find is that this sort of activity rarely happens randomly- usually there is a relationship between the victim and the attacker- so something related to stalking, extortion (demanding money with menaces) etc. And those all carry heavy possible penalties. (5 years, 7 years etc)
> Whoever discharges a firearm as defined in section one hundred and twenty-one of chapter one hundred and forty, a rifle or shotgun within five hundred feet of a dwelling or other building in use, except with the consent of the owner or legal occupant thereof, shall be punished by a fine of not less than fifty nor more than one hundred dollars or by imprisonment in a jail or house of correction for not more than three months, or both.
This is the law that would definitely apply. Interestingly, it appears that there is a bill before the state legislature that would cover specifically shooting at a dwelling (with intent to hit it), which would carry 5 years/$10k fine.
Depending on particular fact patterns, it might fall under attempted murder, reckless endangerment, or other charge in a similar vein. This sort of stuff tends to be extremely jursidiction-dependent.
One definition (there are many) of assault is as follows: "... the intentional application of force upon another person, directly or indirectly, without the other person’s consent. Classified as a criminal act, it can and will be tried in court."