Warsaw also says it scrambled military planes in response to a Russian attack in western Ukraine, close to its border.