* If deal is struck, Taliban say they will 'take a stand'
* Turkish source expects agreement before Sept departure
The Taliban warned Turkey on Tuesday against plans to keep some troops in Afghanistan to run and guard Kabul's main airport after the withdrawal of foreign soldiers, calling the strategy "reprehensible" and warning of "consequences".
Ankara, which has offered to run and guard the airport in the capital after NATO withdraws, has been in talks with the United States on financial, political and logistical support.
Turkey has repeated that the airport must stay open to preserve diplomatic missions in Afghanistan, where a blast rocked Kabul on Tuesday and clashes have intensified across the country.
"The Islamic Emirate of Afghanistan condemns this reprehensible decision," the Taliban said in a statement, referring to Turkey's plan.
"If Turkish officials fail to reconsider their decision and continue the occupation of our country, the Islamic Emirate... will take a stand against them."
In that case, the militant group added, the responsibility for consequences would fall on the shoulders of those who interfere.
The Taliban, who ruled Afghanistan with an iron fist from 1996 to 2001, have been fighting for 20 years to topple the Western-backed government in Kabul and reimpose Islamic rule.
Emboldened by the departure of foreign forces by a September target, they are making a fresh push to surround cities and gain territory.
Turkish Defence Minister Hulusi Akar told reporters after a cabinet meeting on Monday evening that Turkey agreed to some points with U.S. counterparts on running the airport and work towards a deal continues.
"The airport needs to remain open, be operated. All countries say this. If the airport does not operate, the countries will have to withdraw their diplomatic missions there," he said.
Talks now involving ministries should be complete by the time U.S. forces leave, a senior Turkish official told Reuters. "We still think there will be an agreement on the airport. We want to side with the Afghan people," the official said.
Police said a blast rocked a busy area of Kabul on Tuesday, killing four people and wounding five. It was not clear who was behind the explosion or the target.
Clashes were continuing in the southern province of Kandahar, said Attaullah Atta, a provincial council member, with the Taliban being pushed back after a bid to break into a city prison.
Hundreds of families had fled the violence, he added.
Mohammad Daoud Farhad, director of Kandahar's provincial hospital, said it had received eight dead and more than 30 people, mostly civilians, wounded in clashes in the past 24 hours.
Early on Tuesday, Afghan security forces had retreated from the district of Alingar in the eastern province of Laghman, a local government official said on condition of anonymity.
A ceasefire pact with the Taliban in the district fell through in May.
On Monday, the Taliban circled the central city of Ghazni and made attacks overnight in their latest offensive on a provincial capital, a local security official said, only to be pushed back by Afghan forces.