Slovakia has warned it may withhold aid to Ukraine in response to Kyiv's move to shut off Russian gas to EU countries.