Afghan man spared death sentence