DHAKA, Bangladesh -- The hostages were given a test: recite verses from the Quran, or be punished, according to a witness. Those who passed were allowed to eat. Those who failed were tortured and slain.
The dramatic, 10-hour hostage crisis that gripped Bangladesh's diplomatic zone ended Saturday morning with at least 28 dead, including six of the attackers, as commandos raided the popular restaurant where heavily armed attackers were holding dozens of foreigners and Bangladeshis prisoner while hurling bombs and engaging in a gunbattle with security forces. The victims included 20 hostages, mostly foreigners, and two Bangladeshi police officers.
CBS News correspondent Jonathan Vigliotti reports that one man was able to communicate through text messages with his nephew, who was among those held hostage.
"He told us to convey that police should not fire: 'If they fire, we will kill you,'" the man said.
It's unclear if his nephew was among the 13 rescued.
The attack marks an escalation in militant violence that has hit the traditionally moderate Muslim-majority nation with increasing frequency in recent months, with the extremists demanding the secular government revert to Islamic rule. Most previous attacks have involved machete-wielding men singling out individual activists, foreigners and religious minorities.
But Friday night's attack was different, more coordinated, with the attackers brandishing assault rifles as they shouted "Allahu Akbar" (God is Great) and stormed the Holey Artisan Bakery in Dhaka's Gulshan area while dozens of foreigners and Bangladeshis were dining out during the Ramadan holy month.
The gunmen, initially firing blanks, ordered restaurant workers to switch off the lights, and they draped black cloths over closed-circuit cameras, according to a survivor, who spoke with local TV channel ATN News. He and others, including kitchen staff, managed to escape by running to the rooftop or out the back door.
But about 35 were trapped inside, their fate depending on whether they could prove themselves to be Muslims, 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," the Islamic holy book, according to Rezaul Karim, describing what his son, Hasnat, had witnessed inside. "Those who recited were spared. The gunmen even gave them meals last night."
The others, he said, "were tortured."
Detectives were questioning his son and his family along with other survivors as part of the investigation on Saturday, as scattered details of the siege emerged. Authorities were also interrogating one of the attackers captured by commandos in the dramatic morning rescue.
It was not immediately clear whether the attackers had a specific goal, and Bangladesh authorities would not say if they had made any demands.
The Islamic State of Iraq and Syria, or ISIS, claimed responsibility, saying it targeted the citizens of "Crusader countries" in the attack, warning that citizens of such countries would not be safe "as long as their warplanes kill Muslims." The statement was circulated Friday by ISIS supporters on the Telegram messaging service and resembled previous statements by ISIS. It was not immediately clear if its leadership in Syria and Iraq was involved in planning the attack. The Amaq news agency, affiliated with ISIS, also posted photos purportedly showing hostages' bodies, though the authenticity of the images could not be confirmed.
The government did not directly comment on the ISIS claim but has denied in the past that the extremist group has a presence in Bangladesh. The government of Prime Minister Sheikh Hasina instead has accused her political enemies of orchestrating the violence in order to destabilize the nation - which the opposition denies.
On Saturday, Amaq published photos of five smiling young men each holding what appear to be assault rifles and posing in front of a black ISIS flags whom the agency identified as the attackers, according to the SITE Intelligence Service, which monitors jihadi online activity. They were identified by noms de guerre indicating they were all Bangladeshis. Amaq said the fighters used "knives, cleavers, assault rifles and hand grenades."
Amaq said the attackers "verified" the hostages identities, sparing the Muslims and killing the foreigners.
The 20 hostages killed included nine Italians, seven Japanese, three Bangladeshis and one Indian, government sources said, as details of the bloodshed began trickling from other capitals worldwide. The White House confirmed Saturday that a U.S. citizen was among the hostages killed, but did not release any further identification.
"All the hostages were killed last night. The terrorists used sharp weapons to kill them brutally," said Brig. Gen. Nayeem Ashfaq Chowdhury of the Army Headquarters in a news conference Saturday night.
Two Bangladeshi police officers also died from injuries sustained while exchanging gunfire with the attackers Friday night.
Italian President Sergio Mattarella cut short a visit to Latin America because of the massacre, the Italian news agency ANSA reported. Italy's soccer players planned to wear black armbands in a sign of mourning during Saturday's European Championship quarterfinals match against Germany.
A Roman Catholic priest in southern Italy, whose 33-year-old sister Simona Monti, a textile firm employee, was killed in the attack expressed hope that her death could contribute toward making a more just world. Rev. Luca Monti said he hopes "this experience of martyrdom for my family and the blood of my sister Simona can help contribute to building a more just and brotherly world."
In New Delhi, Foreign Minister Sushma Swaraj said she was "extremely pained to share that the terrorists have killed Tarushi, an Indian girl who was taken hostage in the terror attack in Dhaka."
Nineteen-year-old Tarushi Jain had been on holiday from her studies at the University of California, Berkeley. She was in Dhaka visiting her father, who has run a garment business in the country for the past 15 or 20 years, according to Indian government sources, who were not authorized to speak with media and so requested anonymity.
But another Indian citizen, a doctor who spoke Bengali and could pass himself as a Bangladeshi, was released unharmed, a government source told The Associated Press.
A Bangladeshi woman, Ishrat Akhond, was also among the dead. She had been holding a dinner meeting with Italian businessmen when she was killed in the siege, according to three of her friends who did want to be named for fear of reprisal. One told the AP, "she was such a loving person, such a good friend." Others posted photographs and messages of disbelief and condolences on her Facebook page.
Emory University in Atlanta, Georgia, said two of its students were killed in the attack: Abinta Kabir, of Miami, Florida, a sophomore at the school's Oxford, Georgia, campus who was visiting family and friends in Bangladesh, and Faraaz Hossain, of Dhaka, a junior at the university's Goizueta Business School.
Ten of 26 people who were wounded Friday night when the militants opened fire were in critical condition, and six were on life support, according to hospital staff. The injuries ranged from broken bones to gunshot wounds. Most of them were police officers, but one was a civilian. Hospital staff refused to provide any details of their condition on Saturday.
In the end, paramilitary troops managed to rescue 13 hostages, including one Argentine, two Sri Lankans and two Bangladeshis, according to Lt. Col. Tuhin Mohammad Masud, commander of the Rapid Action Battalion that conducted the rescue operations. Japan's government said one Japanese hostage was also rescued with a gunshot wound.
The commandos launched the morning rescue operation after the attackers did not respond to calls for negotiation, Masud said. As the troops, wearing flak jackets and helmets and armed with automatic weapons, moved in on the restaurant at 7:40 a.m., local TV stations reported the sound of gunfire and explosions. At least seven armored vehicles and ambulances stood by.
The commandos killed six of the attackers and recovered explosive devices and sharp weapons from the scene, said Chowdhury of the Army Headquarters.
"Because of the effort of the joint force, the terrorists could not flee," the prime minister said in a nationally televised speech, vowing to fight militant attacks in the country and urging people to come forward.
The audacious attack came during Ramadan, when devout Muslims fast during the day and eat after dark. Many left the city of more than 10 million people for a nine-day public holiday with families to celebrate Eid al Fitr festival with families.
"Anyone who believes in religion cannot do such an act," Hasina, the prime minister, said. "They do not have any religion, their only religion is terrorism."
She announced two days of national mourning for the dead.
The government has cracked down on domestic radical Islamists by making scores of arrests. It has blamed local terrorists and opposition political parties - especially the main opposition Bangladesh Nationalist Party and its Islamist ally Jamaat-e-Islami.
But the attacks have continued, with about two dozen atheist writers, publishers, members of religious minorities, social activists and foreign aid workers slain since 2013. Earlier on Friday, a Hindu temple worker was hacked to death by at least three assailants in southwest Bangladesh. ISIS and and al Qaeda affiliates have claimed responsibility for many of those attacks.
On Thursday, the State Department officially designated al Qaeda's affiliate in Bangladesh, al Qaeda in the Indian Subcontinent, as a foreign terrorist organization. The group has claimed responsibility for the killings of U.S. citizen Avijit Roy and U.S. Embassy worker Xulhaz Manna, who was hacked to death, according to the department.
The escalating violence leading up to the unprecedented hostage crisis has raised fears that religious extremists are gaining a foothold in the country, despite its traditions of secularism and tolerance. That the attackers targeted a popular restaurant in the heart of the diplomatic quarter of Bangladesh's capital signaled a change in tactics. The restaurant overlooking a lake serves Spanish food and is patronized by residents of Gulshan, an affluent neighborhood where most of the foreign embassies are located.
In Washington, a White House official said President Obama was briefed on the attack by his chief counterterrorism adviser Lisa Monaco. The president asked to be kept informed as the situation develops, said the official, who was not authorized to speak publicly about the president's meetings.
State Department spokesman John Kirby says the U.S. had offered its assistance to bring those responsible to justice.