On the morning of the incident, shots were fired at the home of one of the attacker’s mother, the court heard.