The unrest erupted just minutes after an Egyptian court referred the convictions of 21 defendants to the country's top cleric the Grand Mufti for his final authorisation to carry out their death sentences, as is customary.