South Korea’s spy chief plays key role in historic meeting with North