Russian troops withdrawn after Ukraine encircles key city