A Lebanese Shiite Moslem charged in the 1985 TWA hijacking to Beirut denounced Israel and the United States on Tuesday and said he would no longer take part in his trial after the judge interrupted him.

Mohammed Ali Hamadi is charged with murder and air piracy in the June 1985 hijacking. Thirty-nine Americans were held captive for 17 days in Beirut, and U.S. Navy diver Robert Stethem was killed.As the trial entered its third week, court officials questioned Hamadi about a telephone notebook seized from him when he was arrested at Frankfurt Airport on Jan. 15, 1987, on charges of smuggling explosives.

One name in the notebook sounded similar to another hijacking suspect, and Chief Judge Heiner Mueckenberger indicated other names may be linked to bombs or bombings in France, but did not elaborate.