Ten people were killed when a mass shooting erupted at a supermarket in Buffalo, New York, in what authorities believe was a "racist hate crime" carried out by a white gunman.