Israel seeks to extend first phase of ceasefire deal with Hamas as final batch of Palestinians released from detention.