The US is investigating the bombing in Kunduz and says it takes every precaution to prevent civilian casualties.