Moscow and Pyongyang have strengthened their military cooperation in recent months amid heightened tensions with the West.