The Afghan capital has been hit by several attacks, but authorities appeared stunned that the militants had managed to get through the tight security at the Serena hotel - considered one of the safest places to stay in Kabul.
The shooting spree was the latest in a series of high-profile attacks as the Taliban and allied militants step up a campaign of violence in the weeks leading to April 5 national elections.
Ahmad also ran the Kabul Pressistan media company and joined AFP in 2003 to become the agency's senior reporter in Kabul. He covered all aspects of life, war and politics in his native Afghanistan, according to a statement tweeted by the news agency.
The attack in Kabul came on the heels of an uptick in bombings and shootings against foreigners in the Afghan capital, something that had been relatively rare. Earlier this month, a Swedish journalist was shot on the street and a Lebanese restaurant popular with foreigners was attacked by a suicide bomber and gunmen in January.
Taliban spokesman Zabihullah Mujahid claimed responsibility for the Kabul attack, saying it shows that "our people, if they decide to attack any place, they can do it.