Officials said General Razeq and General Miller and the other officials were walking towards a landing zone as the helicopter taking the US General's party back to Kabul approached to land when the gunman, who was waiting outside, opened fire on the group.
Resolute Support issued a statement on Thursday evening stating Miller had escaped unharmed but that at least two Americans had been wounded in the attack. But the local commander of the NDS intelligence service and the Kandahar provincial governor Zalmay Wesa were also killed.
"I promise the Afghan people that soon the situation will get normal in Kandahar", Ghani said.
Peters said initial reports indicate one of the original attackers is dead.
Three Americans - a service member and two civilian workers - were wounded in the shooting, said U.S. Col. Knut Peters, a spokesman for North Atlantic Treaty Organisation troops in Afghanistan.
"People and the security forces of Afghanistan have been paying a heavy price due to continued instability and threats from the enemies of peace", Imran Khan said in a statement.
US officials in Afghanistan say Gen. Miller was not the target but have offered no evidence.
"We need to find who's done this", Mr. Mattis told reporters traveling with him in the southeast Asian city-state of Singapore.
Heart-warming hug for Meghan and Harry in Aussie outback
Meghan and Harry were spotted wearing matching outfits when they boarded their flight for Melbourne from Sydney airport. The Duke and Duchess of Sussex are in Australia on a royal tour when they were interacting with a few children.
In this photo taken on January 2, 2018, Afghan General Abdul Raziq, police chief of Kandahar, looks on as he speaks during a press conference in Kandahar province.
"After the meeting ended and as the officials were saying goodbyes, a member of the governor's team of bodyguards opened fire", Pashtun said.
Abdul Raziq, the top anti-Taliban commander for the southern region in general, had survived a number of assassination attempts, including suicide attacks.
On Thursday, an elite guard attacked a delegation leaving a high-level meeting on security plans for the elections.
"Over 70,000 security forces are there to maintain security".
With allegations of electoral fraud and threats of violence swirling over elections, it was a three-month audit process that was supported by the USA government that led to Ghanii being pronounced the Afghan president. The Taliban has threatened to disrupt the voting and has warned Afghans against participating in what the radical Islamist group regards as a pretext for perpetuating USA intervention in the country.
Security has been steadily deteriorating in Afghanistan with increasingly brazen attacks being carried out by insurgents and Afghanistan's security forces have been on high alert ahead of Saturday's elections.
Gen. Scott Miller, the commander of US and North Atlantic Treaty Organisation troops in Afghanistan, who was present at Thursday's meeting, was unhurt in the incident.