The share attributable to games is very small, if it's non-zero at all. Research on the link has repeatedly failed to establish causation.
School attacks are carried out by individuals with serious underlying issues — personality disorders, paranoia, suicidal ideation, and in many cases prolonged bullying and social isolation. Games are a feature of those lives, not a cause of them.
Blaming a medium is easier than addressing the actual warning signs, which is why the argument resurfaces after every tragedy without ever resolving anything.