Libyan fighters erupted in celebration in the coastal city of Sirte on Tuesday after a nearly seven-month struggle to oust the Islamic State, as the mostly pro-government forces were searching for any remaining militants.