A gunman opened fire with a rifle Saturday at a supermarket in Buffalo, N.Y., in what authorities called a “hate crime and racially motived violent extremism.” The shooter killed 10 people and wounded three others before being taken in custody, law enforcement officials said.