The early years of independence were overshadowed by the First Nagorno-Karabakh war with the ethnic Armenian majority of Nagorno-Karabakh backed by Armenia. By the end of the hostilities in 1994, Armenians controlled up to 14–16 percent of Azerbaijani territory, including Nagorno-Karabakh itself. During the war many atrocities were committed including the massacres at Malibeyli and Gushchular, the Garadaghly massacre and the Khojaly massacres. Furthermore, an estimated 30,000 people have been killed and more than a million people have been displaced, more than 800,000 Azerbaijanis and 300,000 Armenians. Four United Nations Security Council Resolutions (822, 853, 874, and 884) demand for "the immediate withdrawal of all Armenian forces from all occupied territories of Azerbaijan." Many Russians and Armenians left and fled Azerbaijan as refugees during the 1990s. According to the 1970 census, there were 510,000 ethnic Russians and 484,000 Armenians in Azerbaijan.