I don’t know if the right kind of laws exist to prosecute people who either encouraged the shooter online or did not report his plans, especially as they are probably all in other jurisdictions.
“Go for it, Mohammed! They’re all just filthy kaffirs! Paradise awaits you, O blessed shahid!”