Pro-government forces have trapped ISIL members in an area along the coast in Libyan city of Sirte, inflicting heavy losses on them.