Armenian Prime Minister Nikol Pashinyan has claimed a historic victory in the country's first general election since a military defeat by Azerbaijan in 2023.