Ukraine has brought the war into the heart of Russia with drone attacks that Russian authorities said damaged residential buildings in the city of Kazan, some 600 miles from the front line.