Pilot steers plane to safety after smoke detected in engine