Carnations left at the scene around photo of victims as people protest an attack at a popular nightclub in Istanbul, Tuesday, Jan. 3, 2017.   An assailant believed to be armed with a long-barrelled weapon, opened fire at the nightclub in Istanbul's Ortakoy district during New Year's celebrations, killing dozens of people and wounding many others.(AP Photo/Emrah Gurel)
Carnations left at the scene around photo of victims as people protest an attack at a popular nightclub in Istanbul, Tuesday, Jan. 3, 2017. An assailant believed to be armed with a long-barrelled weapon, opened fire at the nightclub in Istanbul's Ortakoy district during New Year's celebrations, killing dozens of people and wounding many others.(AP Photo/Emrah Gurel) Credit: Emrah Gurel

Istanbul — A video emerged Tuesday of a man believed to be the attacker who killed 39 people in a mass shooting at a nightclub, showing him taking a selfie as he silently toured Istanbul’s most famous square.

The camera never leaves the man’s unsmiling face as he walked through Taksim Square during the 44-second clip that was broadcast on state-run Anadolu television and other Turkish media.

It wasn’t immediately clear if the video was made before or after the New Year’s massacre at the Reina nightclub, or how it was obtained. The gunman, who hasn’t been publicly identified, is still at large.

On Monday, the Islamic State group claimed responsibility for the attack, which also wounded nearly 70 people. The extremists said a “soldier of the caliphate” had carried out the mass shooting to avenge Turkish military operations against IS in northern Syria.

Funerals began on Tuesday in Jordan, Lebanon, Israel and Turkey for the dead, most of them tourists. Mourners wept for the lives that were cut short in the early hours of 2017 at the popular and glamorous club.

At least 14 people have been detained in connection with the attack, including two foreigners stopped on Tuesday at the international terminal of Istanbul’s Ataturk Airport after police checked their cellphones and luggage, according to Anadolu.

The Hurriyet newspaper said a woman identified by Turkish media as the wife of the suspect has told police she didn’t know her husband was a member of the Islamic State group.

The woman was detained in the central town of Konya as part of the investigation. Neither she nor her husband has been identified. Hurriyet reported in its online edition that the woman said she learned about the attack on TV and told police she didn’t know her husband harbored “sympathies” toward IS.

Media reports said the gunman flew to Istanbul from Kyrgyzstan with his wife and children on Nov. 20. From there, they drove to the Turkish capital, Ankara, before arriving two days later in Konya.

The family rented a studio there, paying three months of rent in advance. The gunman told the real estate agent he was looking for work, according to the report.

Hurriyet said the gunman returned to Istanbul on Dec. 29.

Several media outlets, citing unidentified security sources, reported on Monday that the man was believed to be from Central Asia and may have been part of the cell that attacked Ataturk Airport in June, killing 45 people.

On Tuesday, Haber Turk newspaper said the man is thought to be a member of China’s Muslim Uighur minority.

The assailant, armed with a long-barreled weapon, killed a policeman and a civilian early Sunday outside the Reina nightclub before opening fire on the estimated 600 revelers inside.