Libya lacks a centralized police force and a strong national army, so the government has to rely on militias who were part of the war against Gadhafi. But they often have conflicting political loyalties.
Assassinations and revenge killings are commonplace, fueled by longstanding grudges dating back to Gadhafi's rule, regional and tribal conflicts, and tensions between hard-line Islamists and other groups.
Much of the violence has centered on Benghazi, a city in the east that was the birthplace of the rebellion.
On Tuesday in Benghazi, gunmen opened fire on a protest sit-in made up of men belonging to the tribe of a controversial Gadhafi official who joined the rebels before being assassinated, killing two and wounding three, security officials said.
The motive of the attack was not clear. The protesters were demanding to know the results of the investigation into the 2011 killing of Abdel-Fatah Younis, who was Gadhafi's interior minister before defecting to the rebel side to help command the uprising.
Younis is considered by some to be a hero of the war against Gadhafi but some ex-rebels are hostile toward anyone who had ties to the regime, no matter what they did during the 2011 war.
Those officials also spoke anonymously as they were not authorized to talk to media.
Also in Benghazi, the head of a private bank kidnapped 45 days previously was found dead on the side of the road on the city's edge, senior security official Col. Abdullah al-Zaidi said. The banker had multiple bullet wounds in his head, chest and belly. His family said the kidnappers had asked for nearly $8 million as ransom.
Meanwhile, the deputy head of a security agency was shot dead outside a hospital in the eastern city by unknown gunmen, al-Zaidi said.