Complex sentence: At the age of 17 he joined the Armenian liberal movement but shortly after, he moved to St. Petersburg to continue his education in the local university.
Split into simpler sentences: At the age of 17 he joined the Armenian liberal movement. Shortly after, he moved to St. Petersburg to continue his education in the local university.