The head of Al-Azhar, one of the most prestigious centres of Sunni Islam learning, on Wednesday condemned "barbaric crimes" committed by the Islamic State group in Iraq and Syria.