Two planes were involved in a near collision when one plane was landing as the other was cleared for takeoff on the same runway, the Federal Aviation Administration said.