Nestled at an altitude of 3800 m and 300 km from Lhasa, Shigatse is the second city of the autonomous prefecture of Tibet .