Three Taliban militia planning a terrorist attack in the capital of southern Ghazni province have been killed, an Afghani security official said on Friday.

Police chief Col. Farid Ahmad Mashal said that three Taliban militia tried to enter the city and conduct an attack there.

But the security personnel, who had a prior tip-off, prevented the insurgent bid to storm security posts, the official said.

Meanwhile, a suicide attack on an Afghan intelligence convoy travelling towards the Afghan capital on Thursday killed at least six people and injured six others, officials said.

The Taliban claimed responsibility for the attack through its spokesperson Zabihullah Mujahid, who identified the suicide bomber as Ahmad Ghaznawi and confirmed the convoy was their intended target.

At a June 30 news conference in Kabul,Afghan president Ashraf Ghani declared an end to the truce, but also called on the Taliban to resume peace negotiations.

Also Police spokesperson Hashmat Stanekzai indicated that according to initial information, four officers of the NDS and one civilian were killed in the attack.

Six others -- five intelligence officials and one civilian -- were wounded.

The cease-fire lasted 18 days in all, after it was extended once and coincided with a three-day Taliban truce.

Between June 15 and 17, videos and photos posted on news sites and social media showed soldiers and Taliban greeting and hugging each other and taking selfies in several provinces.

The three days of no fighting were unprecedented in the nearly 17-year conflict.

The renewed violence has dashed hopes that the truce would provide a clear path to peace talks. Taliban has refused calls to lay down their arms until foreign forces withdraw from Afghanistan.

Militants, who have a small presence in Afghanistan, were not included in the cease-fire and they launched two deadly attacks on civilians during the Eid holiday that ended the holy month of Ramadan.