The Oreshnik missile struck close to Ukraine’s border with Poland, a NATO member.