KABUL, Afghanistan — A Japanese physician and aid worker in eastern Afghanistan died of his wounds after an attack Wednesday that also killed five Afghans, including the doctor’s bodyguards, the driver and a passenger, a hospital spokesman said.

The attack in Nangarhar province targeted Japanese doctor Tetsu Nakamura as he was heading to the provincial capital, Jalalabad, according to the provincial governor’s spokesman, Attaullah Khogyani.

Nakamura was seriously wounded and underwent surgery at a local hospital but died of his wounds shortly after, while being airlifted to the Bagram airfield hospital in the capital, Kabul, said Gulzada Sanger, the hospital spokesman.

Japanese doctor and aid worker Tetsu Nakamura. Kyodo News / AP file

Nakamura had headed the Japanese charity, Peace Medical Service, in Nangarhar since 2008. He came to Afghanistan after a Japanese colleague, Kazuya Ito, was abducted and killed. In April, Afghan President Ashraf Ghani granted Nakamura honorary citizenship of Afghanistan.

Ghani’s spokesman, Sediq Sediqqi, condemned the attack that killed Nakamura, calling it a “heinous act and a cowardly attack on one of Afghanistan's greatest friends.”

“Dr. Nakmora dedicated all his life to change the lives of Afghans, worked on water management, dams and improvement of traditional agriculture in Afghanistan,” Sediqqi added.

Hundreds of Afghans posted photographs of Nakamura on their social media pages, condemning the killing and underscoring how respected the Japanese physician was.

Japanese Prime Minister Shinzō Abe said he was "shocked" by Nakamura's death.

No one immediately claimed responsibility for the attack, the second in as many weeks targeting aid workers in Afghanistan.

The Taliban, who along with the Islamic State group, operate across the province, denied involvement in the attack.

Their spokesman Zabihullah Mujahid tweeted that the insurgent group “has no connection” to Wednesday’s shooting and does not consider the Japanese charity a target in the holy war the Taliban are waging to create an Islamic emirate.

The Taliban control or hold sway over nearly half of Afghanistan, staging near-daily attacks that target Afghan forces and government officials but also kill scores of civilians.

Nangarhar police said they were searching for the attackers, who fled the scene, and that an investigation was underway.

In late November, an American working for the United Nations mission in Afghanistan was killed and five Afghans, including two staff members of the mission, were wounded when a grenade hit a U.N. vehicle in Kabul.