ISTANBUL -- A suicide bomber detonated a bomb in the heart of Istanbul's historic district on Tuesday, killing 10 foreigners -- most of them German tourists -- and wounding 15 other people in the latest in a string of attacks by the Islamic extremists targeting Westerners.

The blast, just steps from the historic Blue Mosque and a former Byzantine church in the city's storied Sultanahmet district, was the first by IS to target Turkey's vital tourism sector, although IS militants have struck with deadly effect elsewhere in the country.

Turkish Prime Minister Ahmet Davutoglu said the bomber was a member of IS and pledged to battle the militant group until it no longer "remains a threat" to Turkey or the world.

Davutoglu described the assailant as a "foreign national," and Deputy Prime Minister Numan Kurtulmus said he was a Syrian citizen born in 1988. However, the private Dogan news agency said the bomber was Saudi-born. Kurtulmus said the attacker was believed to have recently entered Turkey from Syria and was not among a list of potential bombers wanted by Turkey.

"Turkey won't backtrack in its struggle against Daesh by even one step," Davutoglu said, referring to IS by its Arabic acronym. "This terror organization, the assailants and all of their connections will be found and they will receive the punishments they deserve."

Eight Germans were among the dead and nine others were wounded, some seriously, German Foreign Minister Frank-Walter Steinmeier told reporters in Berlin. The nationalities of the two others killed in the blast were not immediately released, but both were foreigners. The wounded also included citizens of Norway, Peru, South Korea and Turkey.

Turkey's state-run news agency said Davutoglu held a telephone conversation with German chancellor Angela Merkel to express his condolences.

"I strongly condemn the terror incident that occurred in Istanbul, at the Sultanahmet Square, and which has been assessed as being an attack by a Syria-rooted suicide bomber," President Recep Tayyip Erdogan said.

Merkel pledged Germany would continue its fight against terrorism.

"Today Istanbul was the target, before Paris, Copenhagen, Tunis, and so many other areas," she told reporters in Berlin. "International terror changes the places of its attacks but its goal is always the same -- it is our free life, in free society. The terrorists are the enemies of all free people, indeed, the enemies of all humanity, whether in Syria or Turkey, in France or Germany."

The impact of Tuesday's attack, while not as deadly as two others last year, was particularly far-reaching because it struck at Turkey's $30 billion tourism industry, which has already suffered from a steep decline in Russian visitors since Turkey shot down a Russian warplane near the Syrian border in November.

Its apparent links to Syria also threatened to have implications in a country that is already dealing with more than 2 million Syrian refugees and a wave of migrants from Syria and other countries pouring across Turkey to Europe.

"By striking in the heart of Istanbul's old city, which has many ... tourists, but few Turks, (IS) is targeting Turkey's lucrative tourism industry," said Soner Cagaptay, an expert on Turkey at the Washington Institute.

Cagaptay said that by targeting Germans, Islamic extremists also seemed to be aiming to heighten an anti-refugee backlash in Europe and deepen the anti-Islam sentiment there.

"This attack will, unfortunately, drive further backlash against German Chancellor Merkel's pro-Syrian refugee policy," Cagaptay said in emailed comments.

The explosion, which could be heard in several neighbourhoods, was at a park that is home to a landmark obelisk some 25 yards (meters) from the Blue Mosque. Nearby monuments include the Ottoman-era Topkapi Palace and the former Byzantine church of Haghia Sophia, now a museum.

Berlin travel agent Lebenslust Touristik said that "many people" that it had booked on a tour were among the dead and wounded. Overall there were 33 people on the tour, the agency said, adding that it was working closely with the German Foreign Ministry to help the victims and their families.

Among the wounded was Jostein Nielsen, a 59-year-old Salvation Army officer from Norway who was sightseeing with his wife when the bomb went off, striking him in the knee with shrapnel.

"I first heard a bang that I think is what detonated the bomb," Nielsen told Norway's TV2, speaking from his hospital bed. "After that came the real bang. ... There were human remains all over the place."

Erdem Koroglu, who was working at a nearby office, told NTV television he saw several people on the ground following the blast.

"It was difficult to say who was alive or dead," Koroglu said. "Buildings rattled from the force of the explosion."

Halil Ibrahim Peltek, a shopkeeper near the area of the blast told The Associated Press it had "an earthquake effect."

"There was panic because the explosion was violent," he said.

The Islamic State group has repeatedly threatened Western targets, with its first major attacks claimed a year ago in Paris on the Charlie Hebdo satirical newspaper and a kosher supermarket.

Two attacks last year targeting a major museum and beach resort in Tunisia left scores dead, nearly all Western tourists. IS also claimed the downing of a Russian jetliner carrying Russian tourists from the Eygptian beach resort of Sharm el-Sheikh that killed all 224 on board.

In the case of Tunisia and Egypt, the response of many Western governments was to issue safety warnings for citizens considering travel to the countries, which rely heavily on tourism revenues. Turkey is equally reliant on tourism, and Istanbul has been among the world's most visited cities.

Last year, Turkey agreed to take a more active role in the U.S.-led battle against the IS group. It has opened it bases to U.S. aircraft to launch air raids on the extremist group in Syria and has carried out a limited number of strikes on the group itself.

It has also moved to tighten security along its 900-kilometre (560-mile) border with Syria in a bid to stem the flow of militants.

In Washington, U.S. State Department spokesman John Kirby condemned Tuesday's attack and pledged to work with Turkey to combat the Islamic State group. "The United States reaffirms our strong commitment to work with Turkey, a NATO ally and valued member" of the coalition fighting IS "to combat the shared threat of terrorism," Kirby said in a statement.

The attack comes at a time of heightened violence between Turkey's security forces and militants linked to the outlawed Kurdistan Workers' Party, or PKK, in the country's mostly Kurdish southeast.

Turkey suffered two major bombing attacks last year, both blamed on the Islamic State group.

More than 30 people were killed in a suicide attack in the town of Suruc, near Turkey's border with Syria, in July. In October, two suicide bombs exploded outside Ankara's main train station as people gathered for a peace rally, killing more than 100 in Turkey's deadliest-ever attack. .

Last month, Turkish authorities arrested two suspected IS militants they said were planning suicide bombings during New Year's celebrations in the capital, Ankara.

- Fraser reported from Ankara, Turkey. Associated Press writers Lefteris Pitarakis in Istanbul, David Rising, Frank Jordans, Kirsten Grieshaber and Geir Moulson in Berlin, Lori Hinnant in Paris, and Jan M. Olsen in Copenhagen, Denmark, contributed to this report.