East Libyan forces have lost at least 12 men, with 35 wounded, in fighting that raged in Benghazi despite a declaration of victory by their commander, medical and military officials said on Friday.

Forces loyal to Khalifa Haftar’s Libyan National Army (LNA) are trying to sweep up the last pockets of resistance in Sabri, the final neighborhood in which rival armed groups still hold territory after a three-year battle for control of the city.

The battle for Benghazi between Haftar’s LNA and an array of Islamist militants and other fighters has been part of a broader conflict since Libya slipped into turmoil following the 2011 fall of strongman Muammar Gaddafi.

On Wednesday evening, Haftar announced the end of the campaign in a televised speech.