Israel's parliament has passed the first reading of a bill proposing the death penalty for those it deems to be terrorists acting against the state - a requirement which means it is likely to be used only against Palestinians convicted of deadly attacks on Israelis.

The far-right National Security Minister, Itamar Ben-Gvir - whose Jewish Power party brought the vote - celebrated late on Monday by handing out sweets after the bill was approved in the 120-seat Knesset by 39 votes to 16.

"After the law is finally passed - terrorists will only be released to hell," he said.

The bill must pass two more readings before becoming law.

In the same session, the Knesset also approved the first reading of another controversial bill allowing the Israeli government to close a foreign media outlet without court approval. That vote was 50 in favour and 41 against.