By 22–23 July, Libyan National Army repelled the offensive by the militia[11] and launched a counter-offensive to recapture all territories under control of BDB, capturing several parts of the Gwarsha district by mid-August and offering ceasefire to the militants if they surrendered.[12]