Military restores order after Egypt clashes