Russia achieved its first major territorial success in more than nine months in the Ukraine war, capturing the eastern city of Avdiivka.