Thousands of ethnic Armenians flee after Azerbaijan retakes enclave