There is no reason to kill a mentally-ill person armed only with a hammer.  Stand back, and wait for the agitated person to calm down.  Make sure others stay away, as well.  I don't see why this is so difficult.  But read on.  Many will say he deserved to be executed.  You know, the compassionate ones.