Afghan president apologizes for deadly airstrike