Israel's prime minister has condemned the actions of a mob who fatally attacked an Eritrean migrant after he was mistakenly shot by a security guard.
Haptom Zerhom was shot after guards mistook him for an attacker during a shooting at a bus station in the southern Israeli city of Beersheba on Sunday night.
Mr Zerhom was unconnected to the shooting, which was carried out by a Bedouin man, who killed an Israeli soldier, took his weapon and opened fire on the crowds, wounding nine people.
Graphic footage shows Mr Zerhom being kicked and beaten by the crowd as he lay on the ground in a pool of blood after being shot.
Mr Zerhom died in hospital hours later.
Nitza Neuman-Heiman, from Soroka Hospital, said he died from both gunshot wounds to the abdomen and the injuries sustained during the attacks by bystanders.
Prime Minister Benjamin Netanyahu said "no one should take the law into their own hands".
"A crowd which stumbles into a site of an attack should evacuate the area and allow the security and rescue forces work," he said at a meeting of his Likud party.
"We are a law-abiding state, no one should take the law into their own hands."
Mr Netanyahu also offered his condolences to Mr Zerhom's family.
Police say they are reviewing CCTV footage to identify and arrest the people who beat Mr Zerhom.
Emmanuel Nahshon, an Israeli foreign ministry spokesman, said his death was the result of "a dreadful misunderstanding".
"We believe that all Israelis should help as much as they can in order to make our streets a safer place against Palestinian terror," he said.
"But by killing an innocent person I think that we have done just the opposite and this is something that certainly should not happen."
Mr Zerhom had been in Beersheba to renew his Israeli visa, according to his employer at a plant nursery.
Sagi Malachi said: "It is heart-breaking. All in all I think that he was in the wrong place at the wrong time."
It remains unclear why Mr Zerhom was mistaken for an attacker in the shooting.
But the daily newspaper Yediot Ahronot left no ambiguity as to why it thought the man was targeted. Its headline said: "Just because of his skin colour".
The actual attacker was shot dead police.
It is the latest in a wave of violence which has seen eight Israelis killed in near-daily attacks this month.
Campaigners have said they are concerned about the rise in racial prejudice as a result of the violence.
Four Israeli city authorities, including Tel Aviv, have decided to temporarily ban Arab workers from schools during times when children are present.
Gili Rei, from the Sikkuy organisation, which advocates equal rights for Jews and Arabs in the Israeli workplace, told Sky News: "I understand fear, I can relate to fear - I myself as a resident of Jerusalem am afraid in these very, very tense times.
"However, we cannot let fear control us, we cannot let it govern us. There are laws in this country and one cannot harm the working conditions of a worker simply because that worker is an Arab.
"Twenty percent of the population of this country are Arabs, we can't exclude 20% of our population from society, we live in a shared society."
Israel's interior ministry, which oversees the municipalities, said it appealed to "all mayors to continue to act with respect and equality towards all their workers, irrespective of religion, ethnicity or gender".