The US vetoed a UN Security Council resolution calling for a ceasefire in Gaza and the release of captives.