Although I believe that these ppl have done heinous crime not worthy of forgiveness, i doubt if death sentence would be of any use.
As to being a deterrant, explain how even after giving death sentence to these terrorists, we cannot promise that there will not be any more terrorist attacks.
Society does not have peace because criminals are killed; but because, the citizens respect each other, they cry for others problems and rejoice at others good fortune.