The family of Japanese physician Tetsu Nakamura, a devoted aid worker who was killed in a shooting this week in Afghanistan, left the country with his body on Saturday.

The Afghan government held a ceremony at an airport in Kabul, with President Ashraf Ghani joining soldiers to carry Nakamura's coffin wrapped by the country's flag toward a plane.

The 73-year-old Nakamura, who headed the Peshawar-kai aid group based in the Japanese city of Fukuoka, and five Afghans including his driver were killed Wednesday as armed men attacked their vehicle in Jalalabad in the eastern province of Nangarhar.

His wife and oldest daughter arrived in the Afghan capital Friday and met with Ghani.

(Afghan President Ashraf Ghani speaks during the ceremony.)

Authorities in the province have said they had obtained information about a possible attack against Nakamura about a year ago but could not prevent the five from being killed, adding they had sent four bodyguards for him.

They have also said they had warned Nakamura the day before the attack that danger was increasing.

Armed anti-government groups, including the Taliban and the Islamic State, operate in the province. But Governor Shah Mahmood Miakhel told local reporters on Thursday there is evidence that the attack was planned outside of Afghanistan. However, he provided no details, saying more investigation is necessary.

Related coverage:

Family stands next to coffin of Japanese doctor Nakamura in Kabul

Candlelight vigil for Japan doctor Nakamura held in Afghan capital

Afghanistan, U.S. mourn death of Japanese doctor Nakamura