A female bystander was killed in the seaside town of Tajura, 20 kilometres east of Tripoli, late Tuesday, following clashes by armed groups.
The chaos caused panic among beachgoers, and emergency services who tried to find safety.
Tajura is a popular destination for families seeking to escape heat of the capital.
“The woman died after being hit in the head” by a stray bullet, emergency services spokesman Oussama Ali told Al-Ahrar TV.
The clashes were said to have broken out after one armed group detained a member of a rival group.
Several armed groups are struggling for control of Libya since a NATO-backed uprising toppled and killed long-time leader Muammar Qaddafi in 2011.
While relative peace has been restored in the past few years, clashes occur occasionally between rival groups, most of which are allied with either the UN-recognised government in Tripoli or the rival administration based in the east.
In May, clashes broke out in Zawiya, west of the capital. Another clash broke out in Tripoli in April.
Last year, 55 people were killed in August in the fiercest clashes to hit the capital in a year.