Buffalo mass shooting being investigated as hate crime