A husband in the midst of divorce proceedings went to a Southern California bar where his wife was dining on Wednesday and shot her before opening fire at random, killing three people and injuring six others before he was killed by law enforcement, Orange County officials said.