Seven people were killed in two related shootings at agricultural facilities in the community of Half Moon Bay south of San Francisco.