BEIRUT — A criminal court in Lebanon on Friday sentenced an Uber driver to death in connection with the killing of an employee of the British Embassy in Beirut nearly two years ago.

The driver, Tarek Houshi, was arrested two days after the body of the diplomat, Rebecca Dykes, 30, was found in December 2017, next to a highway on the outskirts of the Lebanese capital.

Ms. Dykes was believed to have spent the night at a friend’s party in the Gemmayze District of Beirut and was last seen leaving a bar in the area.

The National News Agency of Lebanon reported at the time that Mr. Houshi, then identified only as Tarek H., had a criminal record and had confessed to the killing of Ms. Dykes, but it was not immediately clear on Friday what crime he had been convicted of.