An attack at an Istanbul nightclub early Sunday killed at least 39 people and wounded at least 69.

Turkey's Interior Minister Suleyman Soylu said at least 16 of the dead were foreign nationals, without providing information on their nationalities. Five of the victims were identified as Turkish nationals while authorities were still trying to identify 18 of the victims. At least 69 people were being treated in hospitals, four in serious condition, Soylu said.

Istanbul Governor Vasip Sahin called the incident a "terror attack" and said the attacker shot and killed a police officer and a civilian before entering the club.

"Unfortunately [the attacker] 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.

When will it stop. That's what people are saying in <a href="https://twitter.com/hashtag/Turkey?src=hash">#Turkey</a> That's what has replaced 'Happy New Year' tonight. <a href="https://twitter.com/hashtag/cbc?src=hash">#cbc</a> <a href="https://twitter.com/CBCNews">@cbcnews</a> <a href="https://twitter.com/CBCAlerts">@CBCAlerts</a> —@nilkoksalcbc

The shooting occurred at the popular Reina nightclub in the city's Ortakoy neighbourhood, which sees hundreds of people each night and usually features heavy security, CBC's Nil Koksal reports. Dozens of ambulances were at the scene.

Soylu said the shooter was still on the run, adding: "efforts to find the terrorist are continuing."

The club is located close to recent suicide attacks that killed dozens near a soccer stadium.

Istanbul had already been under heavy security surveillance during the festivities, with police mounting machine-guns and armoured vehicles parked on the streets.

Turkish anti-riot police officers stand guard at the site of a nightclub shooting. (Yasin Akgul/AFP/Getty Images)

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

Ankara and Istanbul have been targeted by several attacks in 2016 carried out by ISIS group or Kurdish rebels, killing more than 180 people.

Canada offers its condolences to families of victims and wishes a speedy recovery to those injured in tonight's horrendous attack <a href="https://twitter.com/hashtag/Istanbul?src=hash">#Istanbul</a> —@MinCanadaFA

Canada, U.S. condemn 'horrendous attack'

Canada's Minister of Foreign Affairs Stéphane Dion denounced the "horrendous attack" on Twitter and offered his condolences to the families of the victims.

Canadians in Istanbul were urged to avoid the area and contact consular assistance in the case of an emergency.

Turkey: shooting at Reina nightclub Istanbul. Avoid the area and follow the instructions of local authorities <a href="https://t.co/BHYnwZTrKK">https://t.co/BHYnwZTrKK</a> 1/3 —@TravelGoC

Canadians in Istanbul, Turkey - for emergency consular assistance contact +90 (212) 385-9700 or sos@international.gc.ca 2/3 —@TravelGoC

Canadians in Turkey: please get in touch with your friends & family to confirm where and how you are 3/3 —@TravelGoC

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

White House spokesman Eric Schultz said President Barack Obama was briefed on the attack by his national security team and asked to be updated as the situation developed. Obama is vacationing in Hawaii this week with his family.

White House National Security Council spokesman Ned Price said the attack on "innocent revellers" celebrating New Year's shows the attackers' savagery. He said the U.S. was sending thoughts and prayers to the relatives of those killed.