Sustained shelling in the main rebel stronghold in eastern Ukraine struck residential buildings and a hospital, killing at least four people and wounding 10 others, officials said, as government forces pressed forward in their campaign to rout the separatists.