Afghanistan's president has appointed a team of investigators to look into the circumstances leading to the Taliban's brief capture of the northern city of Kunduz and US air strike that destroyed a hospital and killed at least 22 people.

Meanwhile, the Pentagon said it would offer "condolence payments" to civilians injured in the air strike and the families of those killed, as well as providing funds for repairing the hospital.

The compensation will be handled through the already existing Commanders' Emergency Response Programme in Afghanistan, and if necessary additional authority will be sought from Congress, Pentagon press secretary Peter Cook said.

The five-man delegation appointed by Ashraf Ghani will leave for Kunduz to conduct a province-wide probe into how the insurgents were able to overrun the city on September 28 and hold it for three days before government troops launched a counter-offensive.

Part of the team's mandate includes looking into the October 3 air strike on a trauma centre run by international charity Doctors Without Borders.

The team will be led by the former head of the national intelligence agency, Amrullah Saleh, and reports to the president.

The "fact-finding team" will deliver a "comprehensive report so that we know what happened in Kunduz, what kind of reforms should be brought and what are the lessons learned for the future", the president said.

Government troops are still fighting to clear out pockets of Taliban insurgents, 10 days after entering Kunduz.

Sarwar Hussaini, a spokesman for the provincial police chief, said three areas had been retaken overnight, though a petrol station in Seh Darak was hit by a rocket and destroyed.

The World Food Programme said it was feeding thousands of people who had left Kunduz and were now living in camps in other cities in the north, and that "additional wheat is being milled in anticipation of increased needs in the coming days".

Representatives of Doctors Without Borders met Mr Ghani and his national security adviser Mohammad Hanif Atmar on Friday.

Mr Ghani told them he had ordered Afghan security forces to ensure the protection of humanitarian organisations. He said investigations were needed "so that we know what happened in the incident, how information was collected, and how the incident happened based on that information".