A masked gunman assassinated a Yemeni security official who worked for the U.S. Embassy in a drive-by shooting Thursday near his home in the capital, officials said, adding the assault bore the hallmarks of al-Qaida’s Yemen branch.