Israeli Prime Minister Benjamin Netanyahu has sent a warning to Hamas as the Middle East ceasefire teeters.