Original: He was promoted to director-general of National Security at the Ministry of the Interior in 1977 after serving as military attaché to the Kingdom of Morocco.
Simplified: He was then promoted (his grade was changed to a superior one) to director-general of National Security at the Ministry of Interior in 1977.