There's no single contributing factor to the violence itself. or rather the violence is both too complicated and overly simple.
what we can do is circumvent the violence with laws. Humans will find a way to kill each other regardless. Guns just make it convenient. That doesn't mean we shouldn't do a better job of making things safe. Nor does that mean that ease at which these weapons are available is completely ok. There are options that we have.
Maybe all the above in small ways and of course varying based on where you are and what your background is. There's not one thing you can point at. I think the big ones are mental health and upbringing.