Six children were among 10 killed in the strike which the US said was meant to stop a militant attack.