Hamadi was convicted in the hijacking of a TWA airliner that took off from Athens in 1985 .