Two Canadians were among those killed in a suicide bomb attack in Afghanistan’s capital that left at least 21 people dead, Foreign Affairs Minister John Baird has confirmed.

A Taliban suicide bomber detonated an explosive at a Kabul restaurant packed with wealthy Afghans and foreigners, and then two other attackers entered and fired bullets into the crowd.

Thirteen of the victims were foreigners.

“Canada condemns in the strongest possible terms the targeted, cowardly terrorist attack today on a restaurant in Kabul,” Baird said in a statement Friday.

“On behalf of all Canadians, we extend our sincerest condolences to the families and friends of those who were killed and injured in this horrible and senseless act of terror.”

United Nations Secretary-General Ban Ki-moon said four UN personnel were killed.

He called it a “horrific attack" and demanded an end to the violence.

According to UN deputy spokesman Farhan Haq, Ban said "such targeted attacks against civilians are completely unacceptable and are in flagrant breach of international humanitarian law."

The International Monetary Fund said Wabel Abdallah, its representative in Afghanistan, was also among those killed in the restaurant attack.

“Our hearts go out to Wabel’s family and friends, as well as the other victims of this attack,” IMF managing director Christine Lagarde said in a statement.