Updated 1:30 PM EST
JAKARTA, Indonesia -- The scene had echoes of the Paris attacks: A bustling shopping area shaken by the blasts of suicide bombers and gunfire as onlookers fled in terror.
But when Thursday's assault in central Jakarta was over, the death toll was far lower. Of the seven killed, five were the attackers themselves and only two were civilians -- a Canadian and an Indonesian. Another 20 people were wounded.
Still, authorities and analysts believe the violence that left the city of 10 million on edge for hours was a loud announcement of the Islamic State group's presence in the world's largest Muslim-majority nation.
Supporters of the Islamic State group circulated a claim of responsibility on social media resembling the militants' previous messages.
The attackers carried handguns, grenades and homemade bombs and struck a Starbucks cafe and a traffic police booth in the Indonesian capital's highest-profile attack in six years.
Authorities said they found a large, undetonated bomb and five smaller devices in a building near the cafe.
"So we think ... their plan was to attack people and follow it up with a larger explosion when more people gathered," said Maj. Gen. Anton Charliyan, the spokesman of Indonesia's national police. "But thank God it didn't happen."
Jakarta police chief Maj. Gen. Tito Karnavian said the attackers had links with IS and were part of a group led by Bahrum Naim, an Indonesian militant who is now in Syria.
"We have identified all attackers," Charliyan said. "We can say that the attackers were affiliated with the ISIS group," he added, using an acronym for the Islamic State group.
The claim was shared on Twitter late Thursday, and the U.S.-based SITE Intelligence Group said it also was circulated among pro-IS groups on other media.
The message said attackers carried out the Jakarta assault and had planted several bombs with timers. It differed from Indonesian police on the number of attackers, saying there were four. It said they wore suicide belts and carried light weaponry.
The statement could not be independently verified by The Associated Press, though it resembled previous claims made by the group, which controls territory in both Iraq and Syria.
Jakarta is no stranger to terrorism, with the 2009 bombings of two hotels that killed seven people and injured more than 50. The bloodiest attack by Islamic extremists in Indonesia -- and in all of Asia -- was in 2002, when a nightclub bombing on the resort island of Bali killed 202 people, mostly foreigners.
Those and others were blamed on the al-Qaida-inspired Jemaah Islamiyah. Following a crackdown by security forces, militant strikes in recent years have been smaller and less deadly, and have targeted government authorities, mainly police and anti-terrorism forces. Terrorism experts say IS supporters in Indonesia are drawn from the remnants of Jemaah Islamiyah.
Charliyan said police had received information in late November about a warning from the Islamic State group that "there will be a concert" in Indonesia, meaning an attack. Last month, anti-terror police arrested nine suspected militants and said they had planned attacks "to attract international news coverage of their existence here."
Indonesian authorities deployed 150,000 security personnel, made arrests and said they foiled a plot to kill government officials, law enforcement officers and others. The heightened security ended Jan. 6.
Southeast Asian terrorism expert Sidney Jones wrote in November that Bahrum Naim has been urging his Indonesian audience to study the Paris attacks.
"While the police and army have been focused on going after Indonesia's most wanted terrorist, Santoso, in the hills of Central Sulawesi, ISIS has succeeded in building a network of supporters in the suburbs of Jakarta," Jones wrote.
Taufik Andri, a terrorist analyst, said although the attack ended swiftly and badly for the attackers, their aim was to show their presence and ability.
"Their main aim was just to give impression that ISIS' supporters here are able to do what was done in Paris. It was just a Paris-inspired attack without being well prepared," he told The Associated Press. Those attacks in November killed 130 people.
Thursday's first suicide bomb went off about 10:50 a.m. at the Starbucks, which is near to some U.N. offices, a shopping center and other Western restaurants, including McDonald's, Pizza Hut and Burger King. The neighborhood is home to many luxury hotels, high-rise buildings and diplomatic offices, including the French Embassy.
Karnavian told reporters that after customers ran out of the cafe, two gunmen outside opened fire, killing the Canadian and wounding an Indonesian.
At about the same time, two other suicide bombers struck a traffic police post nearby, killing an Indonesian man. Minutes later, a group of police were attacked by the remaining two gunmen, using homemade bombs, Karnavian said. This led to an exchange of fire that lasted 15 minutes and ended with both attackers dead.
Guruh Purwanto heard the initial explosion as he met with co-workers at an agricultural company next to the shopping center. He rushed out and saw white smoke billowing from the Starbucks and people running in panic.
"I was shocked when I saw two men with handguns shoot a foreigner," Purwanto said. "He tried to hide behind a car."
He heard another blast and saw three bodies on the street near a wrecked traffic police booth, with more white smoke.
The two gunmen ran into a movie theater but were eventually cornered by police in the Starbucks parking lot, Purwanto said.
"There was gunfire between police officers and the two attackers, like in a movie ... and suddenly the two blew themselves up," he said. "It was scary."
A Dutch man who was seriously wounded underwent surgery, according to Foreign Ministry spokeswoman in the Netherlands.
The man, who was not identified, is an expert in forestry and ecosystems management for the U.N. Environment Program and is "fighting for his life," said UNEP chief Achim Steiner.
About five hours after the first explosions, police announced the area was secure.
"This act is clearly aimed at disturbing public order and spreading terror among people," said President Joko "Jokowi" Widodo, who visited the attack site. "The state, the nation and the people should not be afraid of, and be defeated by, such terror acts."
In condemning the violence during a visit to London, U.S. Secretary of State John Kerry said "these acts of terror are not going to intimidate nation-states from protecting their citizens and continuing to provide real opportunity, education, jobs, possibilities of a future."
The attack prompted a security lockdown in central Jakarta and enhanced checks all over the city.
By evening, a large screen atop the building that houses the Starbucks displayed messages that said "#prayforjakarta" and "Indonesia Unite." Some people left flowers near the stricken traffic police post, along with a wreath that read "Deep condolences. We are not afraid."
Associated Press writers Fadlan Syam and Dita Alangkara in Jakarta and Michael Corder in The Hague, Netherlands, contributed.
JAKARTA, Indonesia -- Attackers set off explosions at a Starbucks cafe in a bustling shopping area in Indonesia's capital and waged gunbattles with police Thursday, leaving bodies in the streets as office workers watched in terror from high-rise buildings.
Police said five attackers and two civilians were killed, while 10 people were injured in the brazen attacks, which followed several warnings in recent weeks by police that Islamic militants were planning something big. It was unclear if any perpetrators remained at large.
Five hours after the major downtown street in Jakarta -- not far from the presidential palace and the U.S. Embassy -- turned into a battleground, police declared the area near the Sarinah shopping mall secure.
"We believe there are no more attackers around Sarinah. We have taken control," Jakarta police spokesman Col. Muhammad Iqbal said.
Gen. Anton Charilyan, a national police spokesman, said the attack involved an unknown number of assailants with grenades and guns. He said they imitated the recent "terror acts" in Paris and were likely from the Islamic State group, but gave no evidence.
It was the first major attack in Indonesia's capital since the 2009 bombings of two hotels that killed seven people and injured more than 50. Before that, bombings at nightclubs on the resort island of Bali in 2002 killed 202 people, mostly foreigners.
No one immediately claimed responsibility for Thursday's attack on Thamrin Street, which prompted a security lockdown in central Jakarta and enhanced checks all over the crowded city of 10 million. However, Aamaq, a news agency affiliated with the Islamic State group, quoted an unidentified source as saying the militant group carried out the attack.
"A source to Aamaq: Fighters from the Islamic State carried out this morning an armed attack that targeted foreigners and the security forces tasked with protecting them in the Indonesian capital Jakarta," it said.
Charilyan said police had received information in late November about a warning from the Islamic State group that "there will be a concert" in Indonesia, meaning an attack.
"This act is clearly aimed at disturbing public order and spreading terror among people," President Joko "Jokowi" Widodo, said in a statement on television. Jokowi, who was in the West Java town of Cirebon, said he was returning to Jakarta immediately.
"The state, the nation and the people should not be afraid of, and be defeated by, such terror acts," he said.
Tri Seranto, a bank security guard, told The Associated Press he saw at least five attackers, including three who triggered explosions at the Starbucks. It was not immediately clear if they exploded bombs or grenades.
Tri described them as suicide bombers, but police spokesman Charilyan denied they blew themselves up.
He said the two dead civilians were a Dutch citizen and an Indonesian. An Algerian man was among the 10 injured, he said.
But there was some confusion about the Dutch citizen's status. A Dutch Foreign Minister spokeswoman in the Netherlands said he was seriously injured and was undergoing surgery.
After the explosions at Starbucks, a gunbattle broke out between the attackers and anti-terror police squads, and gunfire could be heard more than 1ￂﾽ hours later.
Witnesses saw at least three bodies sprawled on the sidewalk after the fighting ended.
The area has many luxury hotels, and offices in high-rise buildings and embassies, including the French.
Tweets from the account of Jeremy Douglas, regional representative of the United Nations Office on Drugs and Crime for Southeast Asia and the Pacific, described a bomb and "serious" exchanges of gunfire on the street outside his Jakarta office. "Didn't experience this in 3.5 years in #Pakistan," he wrote.
Last month, anti-terror police arrested nine suspected militants and said they had planned attacks "to attract international news coverage of their existence here."
The country has been on high alert after authorities said they foiled a plot by Islamic militants to attack government officials, foreigners and others. About 150,000 police officers and soldiers were deployed on New Year's Eve to guard churches, airports and other public places.
More than 9,000 police were also deployed in Bali.
On Tuesday, jailed radical Islamic cleric Abu Bakar Bashir appealed to a court to have his conviction for funding a terror training camp overturned, arguing that his support for the camp was an act of worship.
The 77-year-old leader of the Jemaah Islamiyah militant network filed a judicial review of his 2011 conviction, when he was sentenced to 15 years in jail for setting up the camp in Aceh province. A higher court later cut the sentence to nine years.
Indonesia, the world's most populous Muslim nation, has suffered a spate of deadly attacks blamed on the Jemaah Islamiyah network in the past. But militant strikes in recent years have been smaller and less deadly, and have targeted government authorities, mainly police and anti-terrorism forces.