Morsi supporters besieged in mosque finally get out