DHAKA, Bangladesh — The well-dressed young men entered the trendy restaurant armed with guns, crude bombs and blades. When the 10-hour siege was over, 28 people were dead — including at least one American — and Bangladesh’s attempts to underplay the threat posed by Islamist radicals lay in tatters.

The hostage crisis and ensuing commando raid on a popular Dhaka eatery that ended early Saturday made it clear that Bangladesh has become a key battleground for militants inspired by the likes of Islamic State, which claimed responsibility for the attack.

Army commandos rescued at least 13 people after the standoff.

One Bangladeshi witness said the attackers told him: “You people don’t have to be afraid; we came here to kill the non-Muslims.”

Most of the victims at the Holey Artisan Bakery in the upscale Gulshan neighborhood were foreigners, although the restaurant was packed with both expatriates and Bangladeshis eating dinner during the Ramadan holy month.

Among those killed were nine Japanese, seven Italians, two Bangladeshis and an Indian. One of the Bangladeshis was also an American citizen.

Two police officers were fatally shot by assailants at the start of the raid Friday night. Six assailants were killed in a gun battle with Bangladeshi security forces that began several hours later, prompting questions over the speed of the government response.

One attacker was in government custody.

A statement by Islamic State on Friday night said the attack targeted citizens of “crusader” nations.

The Amaq News Agency, which is affiliated with the militant group, on Saturday released photos of the purported assailants, whom it described as Bangladeshis. The five men were shown smiling in front of an Islamic State flag and said to have been armed with “knives, cleavers, assault rifles and hand grenades.”

Analysts said it was not immediately clear whether Islamic State had directed the attack. Over the last year, Islamic State and its rival, al-Qaida in the Indian Subcontinent, claim to have carried out more than two dozen targeted killings in Bangladesh, mostly of foreigners, secular writers and religious minorities.

Bangladesh’s government has been sharply criticized for downplaying the assassinations, blaming them on rival Islamist political parties and making thousands of arrests that officials acknowledged were unconnected to the crimes.

Prime Minister Sheik Hasina Wajed, in a televised address late Saturday, urged her fellow Bangladeshis to have faith in the government, and declared two days of national mourning.

“We don’t want terrorism in Bangladesh,” Hasina said. Referring to the killers, she said, “I don’t understand their beliefs – what type of Muslims they are.”

The State Department confirmed that a U.S. citizen was among those killed and said it “supports Prime Minister Hasina in her commitment to combat violent extremism in Bangladesh.”

Japanese Prime Minister Shinzo Abe dispatched a task force to Bangladesh to assist in the investigation. Japanese authorities have reportedly been concerned about the investigation into the killing of a Japanese citizen in Bangladesh in late 2015, which remains unsolved.

Witnesses told news agencies that the armed men stormed into the restaurant and fired weapons into the air before going after individual patrons. The restaurant’s Argentine chef told a television station that he fled through a back door and escaped by jumping off the roof of the building.

A restaurant worker identified only as Alam told The Dhaka Tribune that he hid in a back office after the attack began. When the gunmen found him and several other employees, including a Japanese man, they directed the Bangladeshis to the main dining area but kept the Japanese man captive.

Moments later, the witness said he heard a gunshot. Many of the other victims were reportedly killed execution-style.

The hostages were given a test, according to the father of a Bangladeshi businessman who was rescued Saturday morning along with his family.

“The gunmen asked everyone inside to recite from the Quran,” Rezaul Karim told the Associated Press, describing what his son, Hasnat, had witnessed inside the restaurant. “Those who recited were spared. The gunmen even gave them meals last night.”

The others, he said, “were tortured.”

More than 10 hours passed between the start of the raid and when Bangladesh’s rapid-reaction army commandos entered the building.

“There was total pandemonium. Law enforcement had no clue what was going on,” said one security analyst with knowledge of the situation, who requested anonymity to speak candidly.

The use of knives and cleavers mirrored the sharp instruments used to hack to death dozens of individuals in targeted killings over the past two years. But this was by far the most complex attack Islamist militants had carried out in Bangladesh.

A country of 160 million people, mainly Muslims, Bangladesh until recent years was held up as an example of economic development, having raised standards of living and improved public health thanks to a large garment manufacturing industry and international aid.

But a prolonged political crisis has seen Hasina’s government clamp down on rival parties, including Islamists, imprisoning many top leaders and executing others for crimes related to the country’s 1971 war of liberation from Pakistan. The U.S. and United Nations have described the special tribunal leading to the convictions as deeply flawed.

Analysts say the clampdown has helped encourage domestic extremists who are inspired by the brazen attacks of Islamic State.

“Dhaka pre-Holey and post-Holey are going to be two different cities,” the security analyst said. “There has to be a realization that we are a high-threat environment now.”

———

(Khan is a special correspondent. Times staff writer Bengali reported from Londonderry, Northern Ireland.)