“The latest terror attack in Dhaka, less headline-making in the West, nonetheless shows we must be united in ridding our world of this evil,” he tweeted.
Militants killed 20 people, including at least nine Italians, seven Japanese and an American, inside an upmarket restaurant in Bangladesh's capital, before security forces stormed the building and ended a 12-hour standoff on Saturday.
ISIS said it was responsible for one of the most brazen attacks in the South Asian nation's history, but that claim has yet to be confirmed.
It marks a major escalation in a campaign by militants over the past 18 months that had targeted mostly individuals advocating a secular or liberal lifestyle in majority-Muslim Bangladesh with 160 million people.
The gunmen, who stormed the busy restaurant in Dhaka's diplomatic area late on Friday night, ordered all Bangladeshis to stand up before they began killing foreigners, a source briefed on the police investigation said.
"Let the people of the crusader countries know that there is no safety for them as long as their aircraft are killing Muslims," ISIS said in a statement, also posting pictures of five fighters it said were involved in the attack.
Among the dead was the wife of an Italian businessman killed by a machete. She was found by her husband after he spent all night hiding behind a tree outside the cafe while the gunmen were inside, said Agnese Barolo, a friend who lives in Dhaka and spoke to him.
Nine Italians were killed in the attack, the country's foreign minister said, and authorities were trying to confirm the fate of another person missing.
Japan's Chief Cabinet Secretary Yoshihide Suga said seven of its citizens had been confirmed dead in the attack, while one Indian, a 19 year-old female student, was killed in the assault, India's foreign minister said on Twitter.
Emory University in Atlanta said in a statement that two of its students were among hostages who were killed. Abinta Kabir, from Miami, was an undergraduate at Emory's Oxford College, and Faraaz Hossain, who was from Dhaka, was an undergraduate student at the university's Goizueta Business School, Emory said.
The U.S. State Department confirmed one of those killed was a U.S. citizen but did not identify the person. The department said in a statement it was in close contact with the Bangladesh government and had offered to help with the investigation.
Bangladesh authorities are yet to say where all the people killed by the militants came from.
The killing of foreigners will likely shatter the confidence of the expatriate community in Bangladesh, many of whom work for multinationals in the country's $26 billion garment industry that accounts for around 15 percent of the economy. Bangladesh is the world's second largest apparel exporter after China.
Thirteen hostages were rescued, including one Japanese and two Sri Lankans, the army said, Reuters reported.
By ISNA