A shooting at a San Diego mosque killed three people, with law enforcement treating the attack as a hate crime targeting Muslim worshippers.