Gen Mark Milley, the head of the US military, also says around 40,000 civilians have died in the war.