U.S. President Donald Trump cancelled peace talks with Afghanistan’s Taliban leaders after the insurgent group claimed responsibility for last week's  attack in Kabul that killed an American soldier and 11 other people.

Trump said he had planned a secret meeting with the Taliban’s “major leaders” on Sunday at a presidential compound in Camp David, Maryland but immediately called the talks off when the insurgents said they were behind the attack.

“If they cannot agree to a ceasefire during these very important peace talks, and would even kill 12 innocent people, then they probably don’t have the power to negotiate a meaningful agreement anyway,” Trump said on Twitter.

The surprise announcement left in doubt the future of the peace agreement draft worked out last week by Zalmay Khalilzad, the special U.S. envoy for peace in Afghanistan, for a drawdown of thousands of U.S. troops over the coming months.

There was no immediate reaction from the Taliban but the decision appeared to catch them by surprise