The shooting came just eight days after 19 students and two teachers were killed in a mass shooting in Uvalde, Texas, and 18 days after 10 people were killed by a gunman at a supermarket in Buffalo, N.Y.