Israel's Justice Minister Wednesday admitted her mistake after posting a video online purporting to show a black migrant attacking a resident when the footage was apparently recorded in another country.

Ayelet Shaked posted the video on her Facebook page Tuesday as the High Court was poised to rule on a law related to illegal immigrants with the aim of showing the "intolerable" situation facing residents of southern Tel Aviv.

"There was indeed an error," Shaked told Army Radio, adding she had removed the video from her page. Some local media reported that the video had been recorded in Turkey.