A 19-year-old man has been charged over allegedly making an online death threat to Israeli President Isaac Herzog ahead of his visit to Australia this weekend.

Newtown man Darcy Tinning will face a Sydney bail court on Thursday after allegedly making the threat to the “internationally protected person” on social media last month, the Australian Federal Police (AFP) said.

The AFP’s new national security investigations (NSI) team arrested Mr Tinning at his home on Wednesday, seizing a phone and drug paraphernalia.

He has been charged with one count of using a carriage service to make a threat to kill and has been refused bail by police.

The NSI was set up in October last year by Commissioner Krissy Barrett as part of efforts by federal law enforcement to crack down on groups targeting the Jewish community.

Mr Herzog’s visit is likely to see widespread protests across the country, despite temporary restrictions put in place by NSW Police after the Bondi Beach terror attack.

NSW Police Commissioner Mal Lanyon on Tuesday extended those restrictions for another 14 days, citing safety concerns ahead of Mr Herzog’s planned visit to the country.

The restrictions prohibit rallies in areas of the CBD and around the eastern suburbs for another fortnight.