Romania has said that two Spanish F-18 jets were scrambled after an aerial target was detected near its border with Ukraine.