Israeli prime minister Benjamin Netanyahu says he will end the ceasefire in Gaza if all captives are not released.