A BOMB blast near the pyramids in Cairo has killed nine people, including six Egyptian police officers.

The explosion occured as police prepared to raid a militant hideout in the capital’s Al-Hamram district.

As the officers attempted to enter the apartment building, they found it was booby-trapped. The bomb went off as the officers attempted to defuse it.

Ten people were wounded.

A team of officers has now raided an apartment in Cairo suspected to be a hide-out for militants involved in the attack.

The interior ministry has blamed the attack on the black-listed Islamist Muslim Brotherhood movement of ousted president Mohamed Morsi.

Bomba a Il Cairo, almeno 10 morti - Media: ordigno messo da affiliati Isis #egitto https://t.co/3QFuCRxBFb pic.twitter.com/V4gI9gOkJw — Tgcom24 (@MediasetTgcom24) January 21, 2016

“Police had information that a group of Muslim Brotherhood members were preparing to carry out aggressive acts in the coming days using explosives and crude bombs,” the ministry said in a statement posted to Facebook.

“This group was using an apartment in a Cairo building, and on Thursday night the police raided this apartment where they found a number of crude bombs.

“When the bomb squad expert were dealing with one of the bombs, it exploded killing three policemen, one civilian and two unidentified men.”

The explosion damaged part of the apartment building, in which the militants were allegedly living.

The attack comes ahead of next week’s anniversary of the 2011 revolution that ousted longtime autocrat Hosni Mubarak.

Al-Haram has been hit with several attacks and gunfights since the overthrowing of Morsi in July 2013.

Gunmen from the Islamic State’s Egyptian afficiliate the Sinai Province killed five policemen last Wednesday when they attacked a checkpoint in the North Sinai town of El-Arish.