The classic theory of deterrence contemplates the state absorbing the first harm, apprehending its perpetrator and then punishing him publicly and proportionally, so as to show potential future harm doers that it does not pay to commit the harm.
NPR: Rules Should Govern Torture, Dershowitz Says