Tripoli is facing an offensive by military commander Khalifa Haftar's Libyan National Army (LNA) that began in April.

At least 30 people were killed and 33 others wounded in an attack on a military academy in the Libyan capital late on Saturday, the Health Ministry of the Tripoli-based government said in a statement on Sunday.

Tripoli, controlled by the internationally-recognised Government of National Accord (GNA), is facing an offensive by military commander Khalifa Haftar's Libyan National Army (LNA) that began in April.

There has been an increase in air strikes and shelling around Tripoli in recent weeks, with fears that fighting could escalate further after Turkeys Parliament voted to allow a troop deployment in support of the GNA.

Forces allied with the GNA described Saturdays attack on the military camp at Al-Hadhba as “an aerial bombing” launched by their eastern rivals. An LNA spokesman denied involvement.

GNA Health Minister Hamid bin Omar told Reuters earlier in a phone call that the number of dead and wounded was still rising. Tripoli ambulance service spokesman Osama Ali said some body parts could not be immediately counted by forensic experts.

Earlier, the ambulance service appealed for a temporary ceasefire to allow its crews to retrieve the bodies of five civilians killed on As Sidra Road in southern Tripoli and to evacuate families.

Emergency teams withdrew after coming under fire while trying to access the area on Saturday, it said.

The GNA Foreign Ministry called for referring Mr. Haftar and his aides to the International Criminal Court on charges of committing “crimes against humanity”, adding that it will call for an emergency UN Security Council meeting to discuss the alleged crimes.

Qatar, which supports GNA, said on Saturday that the attack ”may amount to a war crime and crimes against humanity”.

Ankara, which last week passed a Bill approving a troop deployment in Libya to support Tripoli, also condemned the attack and said the international community needs to take steps to achieve a ceasefire.

“It is crucial for the international community to urgently take necessary steps to halt external support for the pro-Haftar army and its attacks and establish a ceasefire in Libya,” the Turkish Foreign Ministry said in a statement.

The United Nations Support Mission in Libya (UNSMIL) condemned the attack saying that “rising escalation... further complicates the situation in Libya and threatens the chances of returning to the political process”.

In response to the attack, GNA allied forces have targeted the LNA air base of Al-Wattia in an air strike, around 159 km southwest of Tripoli, a spokesman said in a statement.

Two sources in Haftar forces said four fighters were killed in a drone strike early on Sunday.

An increase in air strikes and shelling in and around Tripoli has caused the deaths of at least 11 civilians since early December and shut down health facilities and schools, the U.N. mission in Libya said on Friday.

Rockets and shelling also shut down Tripoli's only functioning airport on Friday.

On Friday, U.N. Secretary General Antonio Guterres renewed his call for an immediate ceasefire in Libya.

He warned that the delivery of foreign support to warring parties would “only deepen the ongoing conflict and further complicate efforts to reach a peaceful and comprehensive political solution”.

The Parliament which moved to the east in 2014 voted to provide Mr. Haftar with emergency funding on Saturday.

The pro-Haftar chamber also held a series of symbolic votes against the GNA and Turkey, which struck two pacts on maritime boundaries and military cooperation in November.

Saudi Arabia condemns Turkish escalation in Libya

Saudi Arabia condemns “the recent Turkish escalation in Libya” and the Turkish parliament's approval of a troop deployment to Libya, and considers it a violation of U.N. Security Council decisions, the Foreign Ministry said in a statement on the state news agency SPA.

The statement added that “the kingdom affirms that this Turkish escalation poses a threat to the security and stability in Libya and a threat to Arab and regional security, as it is an interference in the internal affairs of an Arab country in flagrant violation of international principles and covenants.”