An employee opened fire Wednesday at a California rail yard, killing eight people before taking his own life as law enforcement rushed in, authorities said, marking the latest attack in a year that has seen a sharp increase in mass killings as the nation emerges from coronavirus restrictions.