ORLANDO, Florida — A man who called 911 to proclaim allegiance to the Islamic State terrorist group, and who had been investigated in the past for possible terrorist ties, stormed a gay nightclub here Sunday morning, wielding an assault rifle and a pistol, and carried out the worst mass shooting in United States history, leaving 50 people dead and 53 wounded.