Both pledged not to target civilians as they fight over Nagorno-Karabakh, but attacks on towns and cities continue.