Afghan soldiers were responsible for firing mortars at a wedding party that killed 17 women and children, an official said Friday, in a mistaken strike that overshadowed the transfer of nationwide security from NATO forces.