Truce reached thanks to mediation efforts by Egypt