Fighting between eastern Libyan forces and troops loyal to the Tripoli government has killed 56 people in the capital, the United Nations said.