The suspect who opened fire at the Gilroy Garlic Festival in California allegedly planned to target churches, religious groups, governments and political parties, officials said.