Unknown gunmen driving a 4x4 vehicle opened fire on the intelligence agent in downtown Al-Baydaa, the official, requesting anonymity, told the Anadolu Agency.
He said the assailants had fled the scene following the shooting, which had occurred outside a government-run cultural center.
No group has claimed responsibility for the attack so far.
But the Al-Qaeda-linked Ansar al-Sharia group, which is fighting government troops in different parts of the country, has claimed responsibility for similar attacks in the past.
Dozens have been killed in recent fighting between the warring camps in fractious Yemen's central and western regions.