PM apologizes for terror attacks