The Ryanair flight from Szczecin, Poland, came within just 300ft of the helicopter before the captain took back control