The Taliban carried out an insider attack on Thursday inside the governor's palace in Kandahar province, killing the provincial intelligence chief, wounding two Americans and barely missing the top US commander in Afghanistan, General Austin "Scott" Miller.
But the attack also killed Brig. Gen. Abdul Raziq, Kandahar's powerful police chief.
A fierce Taliban fighter, Raziq, 39, had previously survived several assassination attemps, and was seen as an invaluable US ally, largely credited with pacifying Kandahar province just a few years earlier.
But he was also a fierce critic of Afghan President Ashraf Ghani, and had been previously accused of torture and corruption.
Here's a look at his life and impact.
Brig. Gen. Abdul Raziq was an ethnic Pashtun who was born in southern Kandahar province's Spin Boldak district.
Raziq's friends said he picked up a gun for the first time when he was 17 years old, according to The New York Times, and he repeatedly bragged about killing Taliban fighters.
In 1994, the Taliban killed his dad and uncle, the latter of whom was a fierce Taliban fighter himself, before Raziq fled with his family to Pakistan.
In 2001, after the US-led invasion ousted the Taliban, he returned and began fighting against the Taliban, eventually overthrowing them in the area.
Source: Al Jazeera
Soon afterwards, Raziq became a police officer, operating along the border between Kandahar and Pakistan's Balochistan province. He would quickly rise through the ranks, becoming a trusted ally of the US as he was seen as a fierce Taliban fighter.
In 2011, after the Taliban assassinated Khan Mahammad Mojayed, the former Kandahar police chief, Raziq was made the provincial police chief, charged with securing Kandahar City from the Taliban.
By 2015, with a group of loyal police officers, Raziq had taken control of Kandahar province using scorched-earth methods, and earning the praise of US military leaders.
And with his increasing power over the years, came increasing wealth. He owned businesses in other countries, dealt in horse trading and spent a lot of time in Dubai.
Source: The New York Times
But Raziq would also be accused of human rights abuses, corruption and drug-trafficking along the way.
In 2017, the United Nation's Committee against Torture said it was concerned about allegations that Raziq was complicit, if not personally implicated, in torturing detainees thought to be associated with the Taliban, including using such methods as, suffocation, crushing testicles, pumping water into stomachs, electric shock treatment, and numerous disappearances.
Raziq repeatedly denied those allegations.
To the Taliban, Raziq was a sought after target. In fact, the police chief had survived several assassination attempts over the years, once telling TOLO News he had escaped 29 attempts.
Source: Al Jazeera
In the last few years of his life, Raziq often disregarded the chain of command, criticised Afghan President Ghani and would often walk around without his uniform on. Ghani considered firing him, but the US dissuaded him, arguing it would bring instability.
Raziq was shot on Thursday when a Taliban gunman opened fire on Raziq and other officials as they were taking pictures outside the Kandahar governor's palace yard, according to TOLO News.
He was shot four times, TOLO reported.
"This killing is the most significant military victory for the Taliban in recent memory," Graeme Smith, a consultant for the International Crisis Group, told The New York Times. "The insurgents' main enemy has now disappeared in the southern heartland where the Taliban movement was born."