The ‘potential security threat’ was discovered on a US-bound flight with 322 onboard