He was ordained a priest in 1946 , and six years later entered the Vatican diplomatic corps serving in nunciatures in Nicaragua , India and the US before returning for Rome to spend five years working in the Secretariat of State .