Gunmen have shot and killed a top Libyan military commander in the volatile eastern city of Benghazi, security sources say.