The close call was the latest in a string of episodes that have raised questions about aviation safety.