Russia says defense pact does not apply to Karabakh