A man who allegedly opened fire inside a Walgreens in Madera, California, may have had a grudge against pharmacies, authorities say.