Security forces stand next to a crater caused by Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019.  (AP Photo/Rahmat Gul)

KABUL, Afghanistan (AP) — The Taliban on Tuesday defended their suicide bombing against an international compound in the Afghan capital that killed at least 16 people and wounded 119, almost all local civilians, just hours after a U.S. envoy said he and the militant group had reached a deal "in principle" to end America's longest war.

Angry Kabul residents whose homes were shredded in the explosion climbed over the buckled blast wall and set part of the compound, a frequent Taliban target, on fire. Thick smoke rose from the Green Village, home to several foreign organizations and guesthouses, whose location has become a peril to nearby local residents as well.

Romanian President Klaus Iohannis condemned the attack, "which, unfortunately, ended the life of a Romanian citizen and seriously wounded another one. I reiterate our profound commitment to combating terrorism at the international level."

"People were screaming and saying, 'My children are trapped in the rubble,'" one witness, Faiz Ahmad, said. A large crater was left in the street from a tractor packed with explosives. Five attackers were killed in the Monday night attack and some 400 foreigners rescued, Interior Ministry spokesman Nasrat Rahimi said.

The Taliban continue to kill Afghan civilians in attacks they say are meant for foreign "invaders" or the Afghan government, apparently sacrificing the support of the people they might wish to rule, even as the U.S. envoy says the deal with the insurgents only needs the approval of President Donald Trump to become a reality. The accord would include a troop withdrawal that the Taliban already portray as their victory.

Taliban spokesman Zabihullah Mujahid told The Associated Press that "we understand that peace talks are going on ... but they must also understand that we are not weak and if we enter into talks ... we enter from a strong position."

He said the attack was a response to raids by U.S. and Afghan forces on civilians across the country. While he acknowledged there should be less harm to civilians, he said they shouldn't live near such an important foreign compound.

Questions are growing among some in Washington about the dangers of trusting the Taliban to make peace. On Tuesday, several former U.S. ambassadors to Afghanistan warned in a joint statement published by the Atlantic Council that "it is not clear whether peace is possible," saying the Taliban have "made it clear that the war will go on against the Afghan government."

A full U.S. troop withdrawal that moves too quickly and without requiring the Taliban to meet conditions such as reducing violence could lead the militant group to avoid making compromises with other Afghans, the former envoys warned. Civil war could follow and give al-Qaida and the local Islamic State affiliate space to grow, they said: "All of this could prove catastrophic for U.S. national security."

The attack occurred just hours after U.S. envoy Zalmay Khalilzad briefed the Afghan government on an agreement "in principle" with the Taliban that would see 5,000 U.S. troops withdraw from five bases in the country within 135 days of a final deal on ending nearly 18 years of fighting. Between 14,000 and 13,000 troops are currently in the country.

Hours before Monday's attack, Khalilzad showed a draft deal to the Afghan president after declaring that they are "at the threshold of an agreement" following the end of the ninth round of U.S.-Taliban talks in Qatar.

Khalilzad has not commented publicly since the blast, which rocked Kabul as many residents watched him speak in a nationally televised interview about the deal and Afghanistan's future.

Shaken Kabul residents questioned whether the Taliban will respect any agreement, especially after foreign troops withdraw.

"This what the Taliban are up to in Afghanistan; totally committed to total destruction. Can they be trusted!!??" presidential spokesman Sediq Seddiqi tweeted.

The Taliban want all of the some 20,000 U.S. and NATO troops out of Afghanistan immediately, while the U.S. seeks a withdrawal in phases that would depend on the Taliban meeting certain conditions such as a reduction in violence.

Attacks have surged in recent months, including Taliban assaults on two provincial capitals over the weekend, as the group also seeks to strengthen its negotiating position with the Afghan government in the even more challenging intra-Afghan talks that are meant to follow a U.S.-Taliban deal. The Taliban have rejected talking with the government so far, dismissing it as a U.S. puppet.

Some analysts also have warned that some factions of the Taliban might be expressing displeasure with the U.S. deal, though Taliban political leaders at the talks in Qatar have insisted that their tens of thousands of fighters would respect whatever agreement is reached.

The militant group is at its strongest since the U.S.-led invasion to topple its government after the Sept. 11, 2001 attacks on the U.S. The Taliban now control or hold sway over roughly half of Afghanistan.

The United Nations and others say civilians are suffering, often caught in the cross-fire as government forces, backed by the U.S., pursue the militants with airstrikes and raids. Afghanistan was the world's deadliest conflict in 2018.

The Taliban spokesman, Mujahid, said that whenever there is a reduction of violence in Afghan cities, the government asserts that the militant group is no longer able to carry out attacks because of stronger Afghan security forces.

"They should realize that they can't stop the Taliban," Mujahid said. "Hopefully they must understand that by now."

___

Associated Press writer Vadim Ghirda in Bucharest contributed.

ADDS DATE - Smoke rises as angry Kabul residents set fire to part of the Green Village compound that has been attacked frequently, a day after a Taliban suicide attack in Kabul, Tuesday, Sept. 3, 2019. An interior ministry spokesman said some hundreds of foreigners were rescued after the attack targeted the compound, which houses several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghan firefighters and journalists work at the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghan firefighters work at the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019.  The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Journalists and security forces stand next to a crater caused by Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. (AP Photo/Rahmat Gul)
Afghan firefighters work at the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
ADDS DATE - Smoke rises as angry Kabul residents set fire to part of the Green Village compound that has been attacked frequently, a day after a Taliban suicide attack in Kabul, Tuesday, Sept. 3, 2019. An interior ministry spokesman said some hundreds of foreigners were rescued after the attack targeted the compound, which houses several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghan firefighters work at the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Workers clean the road at the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019.  The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses.  (AP Photo/Rahmat Gul)
Journalists and security forces stand next to a crater caused by Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. (AP Photo/Rahmat Gul)
A journalist records the video from inside the Green Village compound after the residents protest in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses.  (AP Photo/Rahmat Gul)
Journalists and security forces stand next to a crater caused by Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
ADDS DATE - Smoke rises as angry Kabul residents set fire to part of the Green Village compound that has been attacked frequently, a day after a Taliban suicide attack in Kabul, Tuesday, Sept. 3, 2019. An interior ministry spokesman said some hundreds of foreigners were rescued after the attack targeted the compound, which houses several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghan firefighters work at the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019.  (AP Photo/Rahmat Gul)
Security forces stand next to a crater caused by Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019.  (AP Photo/Rahmat Gul)
Burning cars are seen inside the Green Village after Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghas stand near the site of Monday's suicide bomb attack in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. The attack occurred late Monday near the Green Village, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Smoke billows from the Green Village, home to several international organizations and guesthouses, in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. Angry residents climbed into the international compound that had been targeted and set part of it on fire. (AP Photo/Rahmat Gul)
Smoke billows from the Green Village, home to several international organizations and guesthouses, in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. Angry residents climbed into the international compound that had been targeted and set part of it on fire. (AP Photo/Rahmat Gul)
Smoke billows from the Green Village, home to several international organizations and guesthouses, in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. Angry residents climbed into the international compound that had been targeted and set part of it on fire. (AP Photo/Rahmat Gul)
An Afghan police stands guard as smoke billows from the Green Village, home to several international organizations and guesthouses, in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. Angry residents climbed into the international compound that had been targeted and set part of it on fire. (AP Photo/Rahmat Gul)
Smoke billows from the Green Village, home to several international organizations and guesthouses, in Kabul, Afghanistan, Tuesday, Sept. 3, 2019. Angry residents climbed into the international compound that had been targeted and set part of it on fire. (AP Photo/Rahmat Gul)
ADDS DATE - Smoke rises as Kabul residents set fire to part of the Green Village compound that has been attacked frequently, a day after a Taliban suicide attack in Kabul, Tuesday, Sept. 3, 2019. An interior ministry spokesman said some hundreds of foreigners were rescued after the attack targeted the compound, which houses several international organizations and guesthouses. (AP Photo/Rahmat Gul)
ADDS DATE - Smoke rises as angry Kabul residents set fire to part of the Green Village compound that has been attacked frequently, a day after a Taliban suicide attack in Kabul, Tuesday, Sept. 3, 2019. An interior ministry spokesman said some hundreds of foreigners were rescued after the attack targeted the compound, which houses several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghan men carry an injured girl into the hospital after a large explosion in Kabul, Afghanistan, Monday, Sept. 2, 2019. Afghan officials say a large explosion in Kabul has targeted the Green Village compound, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Wounded men receive treatment in a hospital after a large explosion in Kabul, Afghanistan, Monday, Sept. 2, 2019. The Taliban claimed responsibility for a large explosion in the Afghan capital Monday night, which government officials said targeted an area home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Wounded men receive treatment in a hospital, after a large explosion in Kabul, Afghanistan, Monday, Sept. 2, 2019. The Taliban claimed responsibility for a large explosion in the Afghan capital Monday night, which government officials said targeted an area home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Afghan men carry an injured young boy into a hospital after a large explosion in Kabul, Afghanistan, Monday, Sept. 2, 2019. Afghan officials say a large explosion in Kabul has targeted the Green Village compound, home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)
Wounded men receive treatment in a hospital, after a large explosion in Kabul, Afghanistan, Monday, Sept. 2, 2019. The Taliban claimed responsibility for a large explosion in the Afghan capital Monday night, which government officials said targeted an area home to several international organizations and guesthouses. (AP Photo/Rahmat Gul)