Scores of people were killed when a gunman opened fire and seized hostages at a gay nightclub in Florida, police said.