A rocket exploded at the US Embassy in Afghanistan just minutes into Wednesday, the anniversary of the 9/11 attack on the United States, but officials at the compound declared all-clear about an hour later and reported no injuries.

A plume of smoke rose over central Kabul shortly after midnight and sirens could be heard. Inside the embassy, employees heard this message over the loudspeaker: 'An explosion caused by a rocket has occurred on compound.'

There was no immediate comment from Afghan officials. The NATO mission, which is nearby, also said no personnel had been injured.

It was the first major attack in the Afghan capital since President Donald Trump abruptly called off U.S.-Taliban talks over the weekend, on the brink of an apparent deal to end America's longest war.

A plume of smoke rises near the U.S. Embassy in Kabul, Afghanistan on Wednesday September 11, 2019. A blast was heard shortly after midnight on the anniversary of the 9/11 attacks

Smoke rises from the location of a blast near the U.S. embassy in Kabul, Afghanistan in this image obtained from social media

Two Taliban car bombs shook Kabul last week, killing several civilians and two members of the NATO mission. Trump has cited the death of a US service member in one of those blasts as the reason why he now calls the US-Taliban talks 'dead.'

The 9/11 anniversary is a sensitive day in Afghanistan's capital and one on which attacks have occurred. A U.S.-led invasion of Afghanistan shortly after the 2001 attack toppled the Taliban, who had harbored Osama bin Laden, the al-Qaida leader and attacks mastermind.

In the nearly 18 years of fighting since then, the number of U.S. troops in Afghanistan soared to 100,000 and dropped dramatically after bin Laden was killed in neighboring Pakistan in 2011.

Now about 14,000 U.S. troops remain and Trump has called it 'ridiculous' that they are still in Afghanistan after so long and so many billions of dollars spent.

It is not clear whether the U.S.-Taliban talks will resume.

A rocket exploded at the US Embassy in Afghanistan, pictured, just minutes into Wednesday, the anniversary of the 9/11 attack on the United States