US flight diverted after passenger in cockpit attempts to disable engines