Four Israelis are charged over the beating of an Eritrean migrant who was mistaken for a gunman during an attack last October.