Treaty obliges Moscow and Pyongyang to immediately provide military assistance if either is attacked