The building housing AFP's Gaza City office was hit in an Israeli air strike on Tuesday night, an AFP photographer said.
The photographer, Mahmud Hams, who was in the fourth-floor office at the time and was unharmed, said no AFP staff were hurt in the attack. He said at least three rockets appeared to have hit the building.
"I was in the office with a fixer and suddenly we heard an explosion," Hams said, adding that it shook the building but he didn't initially realize it had been struck.
"About five minutes passed and then we heard two more loud explosions that also shook the building," he said. "I grabbed my cameras and left the office with the fixer and there was smoke in the hallways. We ran out of the building.”
Hams noted that smoke and a fire appeared to be coming from an office on one of the upper floors.
The IDF confirmed targeting the eight-storey building in Gaza City's Rimal neighborhood, explaining that the building was attacked because it housed a Hamas military intelligence operations room.
A spokesman for the IDF told AFP the strike was a "surgical" one.
The IDF Spokesperson’s Unit official Twitter account also confirmed the incident.
"Minutes ago, we surgically targeted a Hamas intelligence operations center on 7th floor of a media building in Gaza. Direct hit confirmed," the account said.
"The Hamas terrorists weren't in the media building to be interviewed. They were there to communicate with field operatives and plan attacks," it added.
The message also included a warning to foreign reporters in Gaza. “Stay away from Hamas operatives and facilities. Hamas, a terrorist group, will use you as human shields," it said.
The latest incident clearly shows how Hamas uses innocent civilians as human shields and operates from civilian areas, knowing that the IDF won’t attack these areas because it does not hurt innocent people.
Precision aerial bombings in the Pillar of Defense counterterrorist operation have proven themselves, sparing civilian deaths and a media backlash.
Earlier this week, the IDF released a video showing how Hamas fires rockets at Israel from an underground launcher site in the backyard of a mosque.
The IDF has also shown how it called off an airstrike when pilots spotted uninvolved civilians near the target.
On Sunday night, the IDF bombed a Gaza City soccer field that camouflaged a Hamas underground missile launching site it used to attack Tel Aviv last Friday.
Covering an underground missile site with a soccer field is part of Hamas's strategy to use civilian sites as shields for terrorist activities.
Yesterday night, in separate Israeli airstrikes, the offices of Agence France-Presse (AFP) and Al Jazeera English were struck or damaged in Gaza City. The airstrike struck the Al-Showa media building, the third such strike in three days.
Badge of the Israel Defense Forces
"A short while ago, the IDF Israel Defense Forces targeted a Hamas intelligence operations center on the seventh floor of a media building in Gaza. A direct hit was confirmed," said the IDF in a statement. "The Hamas terrorists weren't in the media building to be interviewed. They were there to communicate with field operatives and plan attacks".

Journalists in Gaza City in particular, have been victims of violence in the past three days. Earlier yesterday, three Palestinian journalists were killed in two separate airstrikes.  cameramen Mahmoud al-Koumi and Husam Salameh were killed when an Israeli airstrike struck their car which was reported to be marked as 'Press.'  Educational Radio personality Muhammad Abu Aisha was killed in the second airstrike which also struck his car. On Sunday, at least six journalists were injured when an Israeli airstrike first struck the Al-Showa media building housing international journalists. , , , and al-Quds TV, among other agencies, all have offices located in the building.

The IDF has admitted to targeting buildings belonging to media outlets, but states that such buildings are used for "Hamas' operational communications" and denies that any journalists were targets.

"We obviously knew there were journalists in the building, so we did not attack other floors in the building", said Avital Leibovich, a spokesperson for the IDF on Monday.  

In an interview on the English channel of Al Jazeera, also on Monday, an Israeli government spokesperson said "As far as I know, no foreign journalists were hurt whatsoever" in the airstrike on Sunday. "I am not aware...oh you are talking about...first of all, maybe we have a discussion about who is a journalist," added the spokesperson who claims that Al-Aqsa is a Hamas control facility. The spokesperson went on to add that, "From our point of view, that's not a legitimate journalist like an Al Jazeera journalist" and that none of those injured was a "bona fide journalist."

According to the AFP's own report, they were warned directly by the IDF via their Twitter account not to setup offices in the Showa building in a message saying, "This building housed a Hamas intelligence HQ, do not be used as human shields."