Sanctions and talks the best way to end crisis over Pyongyang’s development of nuclear weapons, says foreign ministry spokesman