Police in Israel are investigating an attack by bystanders on an Eritrean, who died after being mistaken for a gunman and then shot and beaten at a bus station in Beersheba.