The death of Mr. Kanaan , who was head of military intelligence in Lebanon until 2002 , added an ominous twist to the continuing United Nations investigation into the assassination of Lebanon 's former prime minister , Rafik Hariri .