Pro-government forces complete recapture of strategic town which had been held by ISIL for months, commanders say.