Of course the defendant could try for an insanity plea, but that would open a whole bucket of worms, with Islam being ruled as insanity in court. But then the Sharia thing would be really screwed up for Muslims. So they would have to Honor Kill this dude.
Ether way he's screwed.
I thought it was reported that the shooter had killed himself after killing all the others.