The secretary said his trip had been planned before the attack , but was kept secret for security reasons .