Casualties from the battle for Libya's capital mounted on Tuesday while Islamic State killed three people in a desert town, illustrating how jihadis may exploit renewed chaos.

Medical facilities reported 47 people killed and 181 wounded in recent days as eastern forces seek to take Tripoli from an internationally-recognized government, the World Health Organization said.

The fatalities were mainly fighters, although they also comprised nine civilians including two doctors, the WHO said.