Israel warned residents of building, which also housed AP and residential flats, to evacuate an hour before air raid.