ISTANBUL - Turkish police are hunting for an assailant who opened fire at a crowded Istanbul nightclub during New Year’s celebrations Sunday apparently wearing a Santa Claus hat, killing at least 39 people and wounding close to 70 others in what authorities said was a terror attack.

CCTV footage shows that the assailant wore the Christmas hat for part of the attack, which unfolded despite increased security measures.

The footage, obtained by AP from Haberturk newspaper, shows the male assailant dressed in black and carrying a backpack as he shoots down a police officer outside the Reina nightclub.

Footage taken by a different camera shows him inside the swanky club in Istanbul’s Ortakoy neighborhood wearing different clothes and a Santa Claus hat.

Turkey’s prime minister denied news reports claiming the gunman wore a Santa Claus outfit.

Get Breaking News Delivered to Your Inbox

Prime Minister Binali Yildirim told reporters Sunday: “There is no truth to this. He is an armed terrorist as we know it.”

The prime minister also said after visiting the wounded in a hospital that the assailant attacked security personnel outside the club before shooting randomly inside.

Yildirim says the attacker left a gun inside the venue and escaped by “taking advantage of the chaos” that ensued.

He said three of the wounded remain in critical condition.

Turkey’s Anadolu Agency reported that 24 of the shooting attack’s 39 victims were citizens of other countries, but didn’t provide a breakdown of their nationalities. The agency quoted opposition lawmaker Ali Seker as telling reporters after visiting a forensic medicine institute that the Turkish victims of the attack included a policeman, a waiter and two security guards employed at the club.

Anadolu says authorities still are trying to identify four of the victims.

A U.S. State Department spokesperson told CBS News that they were not aware of any U.S. citizen deaths in the attack, despite the apparent presence of many Americans in the neighborhood, including several WNBA players.

Foreign Minister Jean-Marc Ayrault said in a statement that a woman with both French and Tunisian citizenship and her Tunisian husband died in the assault. Jordan’s Foreign Ministry said three Jordanians were among the dead. The Lebanese Foreign Ministry said three Lebanese citizens were killed and four were wounded. The ministry reported earlier that the daughter of Parliament Member Estephan El Douaihy was among those injured.

A Saudi Arabia-funded satellite news channel reported that the assault left seven Saudis dead and 10 wounded. Saudi state media and its Foreign Ministry did not immediately provide their own death tolls or confirm the report Sunday night by the Dubai-based broadcaster Al Arabiya. The channel cited the Saudi Embassy in Istanbul for the information.

A Turkish media report said at least seven Saudi nationals and four Iraqis were among the dead. The private Dogan news agency said the dead also included two Indians, two Tunisians and one victim each from Canada, Syria, Israel, Lebanon and Belgium.

A Kuwaiti diplomat in Turkey said one Kuwaiti died and five were wounded.

The prime minister vowed to keep fighting terror organizations, but notes that, “The terror that happens here today may happen in another country in the world tomorrow.”

Reina owner Mehmet Kocarslan, interviewed by the private Dogan news agency, said police had boosted security measures in the upscale neighborhood of Ortakoy and its vicinity.

The measures included tents at key locations with a 24-hour police presence and complementary efforts by the coast guard at sea.

“Despite all these precautions by police forces, unfortunately this painful event took place. We don’t know what to say,” he added. “We are at the point where all words end.”

President Recep Tayyip Erdogan vehemently condemned “the terror attack in Istanbul’s Ortakoy neighborhood in the first hours of 2017” and offered condolences for those who lost their lives, including “foreign guests.”

The attacker, armed with a long-barreled weapon, killed a policeman and a civilian outside Istanbul’s popular Reina club at around 1:15 a.m. before entering and firing on people partying inside, Gov. Vasip Sahin said.

“Unfortunately (he) rained bullets in a very cruel and merciless way on innocent people who were there to celebrate New Year’s and have fun,” Sahin told reporters.

There was no immediate claim of responsibility for the attack and authorities did not name any suspects. The bloodiest attacks that Turkey endured in 2016 were the work of the Islamic State of Iraq and Syria (ISIS) or Kurdish militants.

Turkey is a member of NATO and a partner in the U.S.-led coalition against ISIS. The country is also facing renewed conflict with Kurdish rebels in the southeast, and across the border in Syria and Iraq.

Interior Minister Suleyman Soylu said the attacker has not been identified and is still at large. “Our security forces have started the necessary operations. God willing he will be caught in a short period of time,” he said.

Private NTV news channel said the assailant entered the upscale nightclub, on the shores of the Bosporus, on the European side of the city, dressed in a Santa Claus outfit. The minister said the lone attacker was believed to have left the club wearing different clothing.

At least 15 of the dead were foreign nationals, Soylu said, without providing information on their nationalities. Five of the victims were identified as Turkish nationals while authorities were still trying to identify the rest. At least 69 people were being treated in hospitals, four in serious condition, Soylu said.

Three or four of the Turkish victims may have been employees at the nightclub, he said.

“This was a massacre, a truly inhuman savagery,” Soylu said.

Some customers jumped into the waters of the Bosporus to escape the attack, the NTV report said.

Mehmet Dag, 22, was passing by the club and saw the suspect shoot at a police officer and a bystander. He said the suspect then targeted security, gunning them down and entering the club. “Once he went in, we don’t know what happened. There were gun sounds, and after two minutes the sound of an explosion.”

IPhone footage filmed by Dag and obtained by The Associated Press showed a police officer lying on the ground outside the club, and then a woman. Dag told the woman, who was lying on the floor face down in a pool of blood, “my sister, you will get better.” He called for an ambulance. Footage showed ambulances and the lights of an Istanbul bridge when the sound of gunfire rang out inside the club.

Sinem Uyanik was inside the club with her husband, who was wounded in the attack.

“Before I could understand what was happening, my husband fell on top me,” she said outside Istanbul’s Sisli Etfal Hospital. “I had to lift several bodies from on top of me before I could get out. It was frightening.” Her husband was not in serious condition despite sustaining three wounds.

The nightclub area remained sealed off on Sunday morning.

Heavily armed police blocked the snowy street in front of the nightclub where the entrance was covered with blue plastic sheeting below a Turkish flag. Police patrolled the Asian side of the Bosporus on the other side of the club.

Crime scene investigators were seen inside the club searching through piles of mingled chairs, tables and pieces of clothing left behind during the panic among the guests.

And there were emotional scenes in front of a city morgue where those shot dead were brought for identification. Some relatives cried out and fell to the ground as they apparently learned the fate of their loved ones.

Major attacks carried out by ISIS or Kurdish militants killed more than 180 people in Istanbul and Ankara alone in 2016.

On Dec. 10, a double bomb attack outside a soccer stadium near the Reina nightclub killed 45 people and wounded some 150 others. The attack was claimed by Turkey-based Kurdish militant group, the Kurdish Freedom Falcons.

Nine days later, an off-duty Turkish riot policeman assassinated Russian Ambassador Andrei Karlov at a photo exhibition in the capital, Ankara. The government has suggested that a movement led by U.S.-based Muslim cleric Fethullah Gulen was behind the killing - an accusation the cleric has denied.

“Turkey continues its combat against terror and is absolutely determined to do whatever is necessary in the region to ensure its citizens safety and peace,” said President Erdogan in a written statement Sunday.

The nightclub attack drew quick condemnation from the West and Russia.

Russian President Vladimir Putin sent his Turkish counterpart a a telegram of condolences, saying “it is hard to imagine a more cynical crime than killing innocent people during New Year celebrations.”

“However, terrorists don’t share moral values. Our common duty is to combat terrorists’ aggression,” Putin said.

The White House condemned what it called a “horrific terrorist attack” and offered U.S. help to Turkey.

The U.S. Consulate General in Istanbul reminded U.S. citizens “that extremist groups are continuing aggressive efforts to conduct attacks in areas where U.S. citizens and expatriates reside or frequent.”

European Union foreign policy chief Federica Mogherini tweeted: “Our thoughts are with victims and their loved ones. We continue to work to prevent these tragedies.”

An estimated 600 people were celebrating inside the club that is often frequented by famous locals, including singers, actors and sports stars. Several shocked revelers were seen fleeing the scene after the attack and the music fell silent.

The prime minister’s office issued a media blackout on the events and asked media to refrain from broadcasting and publishing anything that may cause “fear in the public, panic and disorder and which may serve the aims of terrorist organizations.”

Security measures had been heightened in major Turkish cities, with police barring traffic leading up to key squares in Istanbul and the capital Ankara. In Istanbul, 17,000 police officers were put on duty, some disguised as Santa Claus and others as street vendors, Turkey’s Anadolu news agency reported.