Amid efforts for a ceasefire deal in Gaza, Hamas says it will free the last living hostage with US nationality in its custody.