DUBAI, United Arab Emirates - The United Arab Emirates announced on Wednesday that five of its diplomats were killed in a bombing in southern Afghanistan the day before, one of the worst attacks to target the young nation's diplomatic corps.

The federation of seven sheikhdoms on the Arabian Peninsula said it would immediately fly the nation's flag at half-staff in honour of the dead from the attack Tuesday in Kandahar.

Meanwhile, the Taliban denied planting the bomb in the Kandahar attack, which also wounded the UAE ambassador to Afghanistan.

Dubai's ruler Sheikh Mohammed bin Rashid Al Maktoum, the UAE's prime minister and vice-president, said on Twitter that "there is no human, moral or religious justification for the bombing and killing of people trying to help" others.

The Kandahar attack targeted a guesthouse of provincial Gov. Homayun Azizia, who was also wounded in the assault, along with UAE Ambassador Juma Mohammed Abdullah al-Kaabi.

The Taliban claimed attacks earlier on Tuesday in Kabul that killed at least 38 people and wounded dozens. But on Wednesday, they issued a short statement blaming an "internal local rivalry" for the attack.

The Taliban have denied some attacks in the past that diplomats and security forces later attributed to the group. An attack inside the heavily guarded compound would represent a major breach of security, even in Afghanistan, a country long torn by war.

An earlier UAE Foreign Ministry statement said the diplomats were in Kandahar as part of a humanitarian mission.

Emirati combat troops had been sent to Afghanistan after the 2001 U.S.-led invasion that toppled the Taliban. The UAE had troops for years as part of the NATO-led mission, and the Gulf federation also trained members of the Afghan armed forces. Multiple daily commercial flights link the countries, with Dubai serving as an important commercial hub for Afghan businessmen.

-----

Associated Press writers Rahim Faiez in Kabul, Afghanistan, and Adam Schreck in Dubai, United Arab Emirates, contributed to this report.