At least four people have died and schoolchildren have been injured in a shooting in northern California, US authorities say.