The 13-storey building was attacked an hour and a half after residents and local people were warned to evacuate, Reuters news agency reports.
Israel's military says it is targeting militants in Gaza in response to earlier rocket attacks.
At least 30 people have died in some of the worst violence in years.
The international community has urged both sides to end the escalation, which follows days of unrest in Jerusalem.