Technically he never said they did't deserve to die. He just said that they died and innocent people should't die. Also that says nothing about who he thinks is innocent today in his political context.
Taliban attack police HQ in Kunduz (AP)
from the article: Iranian foreign minister: The Holocaust is no myth