Polish minister warns of threat from Ukraine