ISTANBUL - Turkey pointed the finger of blame at Islamic State jihadists Wednesday after suicide bombers armed with automatic rifles attacked Istanbul's main international airport, killing 41 people, including foreigners.

Witnesses described scenes of terror and panic on Tuesday evening as the attackers began shooting indiscriminately and then blew themselves up at the entrance to Ataturk airport, one of Europe's busiest hubs.

The assault, at the start of Turkey's crucial summer tourist season, was the latest in a wave of attacks in Istanbul and the capital Ankara over the past year, putting the country on high alert.

There was no immediate claim of responsibility but Prime Minister Binali Yildirim said "the evidence points to Daesh", using another name for the jihadist group.

The city's governor said 41 people were killed, including 13 foreigners, and 239 wounded.

President Recep Tayyip Erdogan called for an international "joint fight" against terror, as Western allies including the United States condemned the "heinous" attack.

Yildirim said the three suicide bombers had arrived at the airport in a taxi and opened fire at the entrance to the international terminal before detonating their explosives.

Security camera footage widely circulated on social media appeared to capture two of the blasts. In one clip a huge ball of flame erupts at an entrance to the terminal building, scattering terrified passengers.

Another video shows a black-clad attacker running inside the building before collapsing to the ground - apparently felled by a police bullet - and blowing himself up.

The attack came just as Turkey, which had found itself increasingly friendless on the international stage, begins rebuilding relations with Israel and Russia.

It follows coordinated IS suicide bombings at Brussels airport and a city metro station in March that left 32 people dead.

An AFP photographer saw bodies covered with sheets at the terminal, where bullet holes peppered the windows and shattered glass was strewn on the floor, along with abandoned luggage.

Otfah Mohamed Abdullah was checking her luggage in when she saw one of the attackers pull out a hidden gun.

"He's shooting up, two times, and he's beginning to shoot people like that, like he was walking like a prophet," she told AFPTV.

"Everybody started running in different directions when the shooting started. I hid under the counter where I was standing and a couple of the ground staff did the same," South African university administrator Judy Favish told eNCA television in her home country.

Favish said she and other travellers were ushered to the basement before emerging about two hours later.

"We walked through the airport and saw debris and blood. It was just chaos. It was horrible."

Analyst Soner Cagaptay, director of the Turkish Research Programme at The Washington Institute, described it as a "symbolic attack against the heart of Turkey".

"If this Islamic State is indeed behind this attack, this would be a declaration of war. Turkey's vengeance will come down like rain from hell on the Islamic State."

The attack prompted the suspension of all flights at the airport, but operations were resuming on Wednesday with some delays.

There was chaos at the nearest hospital in Istanbul's Bakirkoy district, which was inundated with relatives desperate for news of loved ones.

Brussels airport, the scene of suicide bombings just months ago, tweeted condolences, saying: "Our thoughts are with the victims of the attacks at @istanbulairport.".

The US and French consulates warned people to stay away from the area.

Erdogan met his prime minister and military chief after news of the carnage broke.

"We urge the world, especially Western countries, to take a firm stand against terrorism," Erdogan said in a statement.

"Despite paying a heavy price, Turkey has the power, determination and capacity to continue the fight against terrorism until the end." Istanbul, a major tourist hub that is home to some 15 million people, has suffered a series of attacks in the past year, including a bombing in the heart of the tourist district that killed a dozen German visitors and was blamed on IS.

Two months later, three Israelis and an Iranian were killed in a bomb attack on the city's main Istiklal shopping street, also blamed on IS.

A blast on the tarmac at Istanbul's other international airport, Sabiha Gokcen, killed a cleaner in December.

Turkey has been hit by at least five attacks blamed on IS jihadists, including a blast in Ankara in October 2015 that left over 100 dead, the worst in the country's modern history.

The Kurdistan Freedom Falcons (TAK) - seen as a splinter group of the rebel Kurdistan Workers' Party (PKK) - also claimed a car bombing in Istanbul in June that killed 11, and warned foreign tourists they would not be safe in Turkey.

It said its action was to avenge a sustained offensive against the outlawed PKK in southeastern Turkey following the collapse of a ceasefire last year.

Hundreds of members of the Turkish security forces have since been killed in PKK attacks.

Meanwhile, a roadside bomb planted by Kurdish militants ripped apart a military armoured vehicle in southeast Turkey on Wednesday, killing two soldiers and wounding three others, security sources said.

Kurdistan Workers Party (PKK) militants detonated the explosives by remote control near a village in the Derik district of Mardin province at 3:10 pm (1210 GMT), the sources said, adding an operation was launched in the area to capture those responsible.

Turkey is facing multiple security threats. As well as the insurgency in the mainly Kurdish southeast, it is also fighting Islamic State in Syria as a member of the US-led coalition.

Earlier on Wednesday, the Turkish military said two soldiers were killed and another three wounded on Tuesday evening in two attacks by PKK fighters in the southeast's Diyarbakir province.

The militants launched one attack in the Lice area of Diyarbakir, wounding four soldiers, one of whom later died in hospital, the armed forces statement said.

It said another soldier was shot dead by PKK militants in Diyarbakir's Bismil district after he got out of a vehicle in front of his house.

More than 40,000 people have been killed in the conflict since the PKK, designated a terrorist group by Turkey and its Western allies, began its insurgency in 1984. Violence has surged since the collapse of a ceasefire last July.