At least five Libyans soldiers were killed on Friday in clashes with gunmen in the restive eastern city of Benghazi, military sources and medics said.