Four people were killed and nearly a dozen wounded, including two children, when a gunman went on a rampage Tuesday, randomly picking his targets at a school and other locations in rural northern California.