The head of military intelligence in the eastern Libyan city of Benghazi was shot dead on Friday during a visit to his family in nearby Derna, a security official said.