"The failure happened years before that". Exactly.
If community organisations; schools and the police have to deal with young men or women carrying knives then that means the parents/ family have failed.
The broader issue is a failure of parenting. I wish we would stop making excuses. The 'media' and 'society' do not bring up your child - you do. You teach them the difference between right and wrong. It is your responsibility.
Every parent needs to play their part else it remains a faceless, hopeless cycle of abdicating responsibility and blaming the people left to pick up the pieces, like the police and schools and media and society ... and of course, the government and funding.
OP totally agree that this is profoundly sad, the loss of an innocent young life and the parenting that blames everybody but themselves for their children walking around with knives.
(Of course, we all acknowledge that even the best parents can land up with mentally ill or criminal children - but, on average, children are a product of their parents moral and belief systems.)