"Such mistakes can and should be avoided," Ghani said in a statement. "But it is also a painful demonstration of the cost of war being brought upon us by terrorist groups and enemies of Afghanistan," he said, adding that the US investigation "will enable the authorities to learn from the mistakes and hold people accountable".