UPDATE 1:22 p.m. EST:
An American man survived the Istanbul shooting by playing dead, USA Today reports. Jacob Raak said he was visiting friends for his 35th birthday when he was shot in the leg.
"I just let him shoot me," he said. His brother said he avoided serious injury because the bullet hit his phone.
Meanwhile, the U.S. Embassy in Ankara insisted it had no knowledge of a threat to the club, despite rumors on social media insisting otherwise.
We let infidel Turkey know that the blood of Muslims that is being shed... will turn into fire on its territories.
ORIGINAL STORY: ISIS claimed responsibility early Monday for a mass shooting in an Istanbul nightclub on New Year's Day.
The gunman, who is still at large, killed 39 people and wounded dozens more. He used an automatic rifle and hand grenades in the attack.
ISIS's Aamaq News Agency said the shooter had taken orders from leader Abu Bakr al-Baghdadi.
The shooter is believed to be from Uzbekistan or Kyrgyzstan, according to Turkish media reports.
Hundreds of people were inside the Reina nightclub when the shooter attacked just after midnight on Sunday. Officials said the gunman was believed to have been wearing a Santa Claus costume.
2017 yılının ilk saatlerinde İstanbul’un Ortaköy semtinde meydana gelen terör saldırısını şiddetle kınıyorum.— Recep Tayyip Erdoğan (@RT_Erdogan) January 1, 2017
Turkish president Recep Tayyip Erdogan condemned the attack, as did the United States.
Statement on the terrorist attack in Istanbul, Turkey: pic.twitter.com/jTe2lMbA1c— White House Archived (@ObamaWhiteHouse) January 1, 2017
Here's the White House's official statement.
WATCH | Here's an emotional funeral for a victim of the shooting.
Of the 39 people killed, all but one have been identified as of early Monday morning, officials said.
Several WNBA players were next door to the nightclub at the time of the shooting. They were playing in a Turkish basketball league in the offseason, and all were unhurt.
Turkey has partnered with the anti-ISIS coalition in Syria in Iraq. ISIS has responded with repeated attacks in Turkey.
We're okay. Goodnight.— Essence T. Carson (@Pr3pE) January 1, 2017
Los Angeles Sparks player Essence Carson tweeted that she was unhurt.
The Associated Press contributed to this report.