An investigation by Australia revealed that the device had been inside one of the plane’s four engines since last December.