Slovakia's pro-Russian prime minister has threatened to pull Slovakia from the EU and NATO, arguing such alliances could soon only exist in "the history books".