SINGAPORE — U.S. Defense Secretary Jim Mattis said Friday the killing of a powerful police chief in southern Afghanistan just days before national elections is unlikely to fundamentally weaken the security situation.

Mattis commented on the attack in Kandahar during a break in meetings at an Asian security conference in Singapore.

Mattis called the death of Abdul Raziq a “tragic loss of a patriot.” But he said he believes the Afghan security forces have matured to the point where they can continue fighting the Taliban without him.

Top US commander in Afghanistan unharmed after attack leaves key Afghan general dead, 2 Americans wounded The top U.S. general in Afghanistan was present during an attack Thursday that wounded two U.S. troops and killed an Afghan general who was key to holding together the many disparate political groups and security forces in southern Afghanistan.

"We remain absolutely committed to an Afghan-led Afghan reconciliation," he said. "Right now, we're going toward the election and we will continue to defend the Afghan people."

He said he had not spoken to the top U.S. commander in Afghanistan, Gen. Scott Miller, since the attack. Miller was present during the shooting but uninjured.

The Taliban have claimed responsibility for the assault, saying they targeted Miller.

Army Gen. Scott Miller, commander of U.S. and NATO troops in Afghanistan, speaks during the Resolute Support mission change of command ceremony in Kabul, Afghanistan on Sept. 2, 2018. Afghan officials said Thursday, Oct. 18, 2018 that three top Kandahar province officials have been killed by their own guards in an attack at a security meeting that also wounded two U.S. troops. A Taliban spokesman who claimed responsibility for the attack told The Associated Press that Miller was the target. He escaped unharmed. (Tech. Sgt. Sharida Jackson via AP)

× Fear of missing out? Sign up for the Early Bird Brief - a daily roundup of military and defense news stories from around the globe. Thanks for signing up. By giving us your email, you are opting in to the Early Bird Brief.

Afghanistan’s election commission on Friday postponed elections in Kandahar for a week following the brazen attack that killed at least two senior provincial officials. The development came as mourners gathered for the funeral of Raziq.

The Independent Election Commission's deputy spokesman Aziz Ibrahimi said the postponement was meant to allow mourners to observe funeral rites for the slain officials.

Also killed in Thursday's attack was the Kandahar intelligence chief, Abdul Mohmin, but the condition of the province's governor, Zalmay Wesa, who was wounded, has been shrouded in mystery since the assault. Some reports say Wesa has been transferred to a NATO hospital outside Kandahar.

The Kandahar meeting, convened to discuss security plans for Saturday's parliamentary elections, had just concluded when an elite Afghan guard turned his gun on the departing delegation.

The head of NATO troops in Afghanistan, Gen. Scott Miller, center left, Kandahar Gov. Zalmay Wesa, center right, and their delegations attend a security conference, in Kandahar, Afghanistan, Thursday, Oct. 18, 2018. The three top officials in Afghanistan's Kandahar province were killed, including Wesa, when their own guards opened fire on them at the conference Thursday, the deputy provincial governor said. A Taliban spokesman said the target was Miller, who escaped without injury, according to NATO. (AP Photo)

Two Afghan policemen were also killed and three were wounded in the attack, according to a Kandahar hospital official who spoke on condition of anonymity because he wasn't authorized to talk to reporters.

Three Americans — a U.S. service member, a coalition contractor and an American civilian — were wounded and in stable condition, NATO said.

A Kandahar lawmaker running for parliament, Khaled Pashtun, said the one-week postponement in the polling was meant to give voters who might have stayed at home on Saturday, afraid so soon after the attack, the chance to vote in the elections.

Nevertheless, the attack, more than 17 years after the Taliban were driven from power, underscores the harrowing insecurity in Afghanistan ahead of the elections.

According to an AP television cameraman who was at the meeting, the delegates had just gathered for a group photo when gunfire broke out inside the provincial governor's compound in Kandahar city. Everyone scattered, and the U.S. participants scrambled toward their helicopter. But a firefight broke out between the U.S. service members and Afghan police when they tried to stop the U.S. delegation from reaching their helicopter, said the cameraman.

Taliban spokesman Qari Yousuf Ahmadi said the militant group carried out the attack and that Miller was the target.

But U.S. Army Col. David Butler, who attended the meeting with Miller, said Raziq was clearly the target, not the U.S. general. Butler said the assailant shot at Raziq and then appeared to spray the area with gunfire before he was killed.

FILE - In this Aug. 4, 2016 file photo, Gen. Abdul Raziq, Kandahar police chief, speaks during an interview with The Associated Press in Kandahar, Afghanistan. (Massoud Hossaini/AP)

He said Miller and the Afghan leaders had moved outside the palace after several hours of meetings and were standing in small groups in the compound. He said he heard several shots "and we all took cover. It was over in seconds."

Butler added that Miller made sure the scene was secure and the wounded were taken away by medivac before he left the area and returned to Kabul.

Razik was a close U.S. ally despite widespread allegations of corruption. He ruled Kandahar with an iron fist and had survived several past assassination attempts, including one last year that killed five diplomats from the United Arab Emirates.

Afghan President Ashraf Ghani's adviser, Ziaulhaq Amarkhil, said the attack was meant to disrupt elections and urged voters to defy Taliban threats, saying casting their ballot "would be a big slap on the face of the enemy."

The U.N. Security Council condemned the attacks and others recently in Afghanistan and said violence or threats intended to disrupt the elections were unacceptable.