A Pakistani court has sentenced an al-Qaida-linked militant to death for plotting a suicide attack that killed a U.S. diplomat in Karachi two years ago.

The anti-terrorism court in Karachi convicted Anwarul Haq Wednesday of murder and terrorism in connection with the bombing.

In the March 2006 attack, a suicide bomber rammed his car into a vehicle carrying U.S. diplomat David Foy near the American consulate in Karachi.

The explosion killed Foy and three Pakistanis, one day before President Bush began an official visit to Pakistan.

Pakistani authorities arrested Haq and another suspect, Usman Ghani, several months later and accused both of links to al-Qaida. The Karachi court acquitted Ghani for lack of evidence.

The Associated Press quotes a defense lawyer Mohammed Farooq as saying Haq will appeal his conviction. The lawyer also accused police of producing "fake" witnesses against his client.

Some information for this report was provided by AFP, AP and Reuters.