A residential building in central Beirut has been "completely destroyed" in an Israeli attack that left 23 injured.