Four Israelis have been indicted over the beating an Eritrean migrant they mistook for an attacker during an October shooting.

Habtom Zerhom fled for cover when an Arab assailant fatally shot a soldier in the central bus station of the southern town of Beersheba.

Tuesday's indictment says a security guard mistook Zerhom, in his 20s, for the attacker and shot him.

A mob attacked Zerhom as he lay on the floor. The indictment says a prison guard, a soldier and two civilians kicked Zerhom and rammed him with a bench.

Zerhom died in hospital. An autopsy showed he died of gunfire.

About 34,000 Eritrean migrants live in Israel. They say they are fleeing lifelong military conscription. Israel says they are economic migrants and refuses to grant them refugee status.