Several crowded buildings in Beit Lahia and Gaza City were hit overnight, medics and local media say.