The 20-year-old had displayed concerning behaviour in the lead-up to the shooting.