The US defence department says troops in Afghanistan failed to follow proper procedures when they carried out air raids on Taliban militants last month.