Three shooting incidents have left eight people dead and six wounded in the American states of Pennsylvania and California.