Thousands flee Nagorno-Karabakh into Armenia