The Lebanese army Tuesday agreed to a ceasefire request from Islamic militants to allow their families to leave a Palestinian refugee camp where the two factions have been fighting for months .