Five Egyptian policemen were killed and three others wounded in an ISIS attack on a checkpoint in Sinai Peninsula on Wednesday around midnight.

The Interior Ministry said unidentified gunmen killed five police personnel late Wednesday at a security checkpoint in El-Arish city. El-Arish is largest city of the restive North Sinai province.

"Unidentified gunmen opened fire on security forces at El-Etlawi square in the centre of El-Arish," the ministry said in a statement, according to Ten News.

A Sinai-based branch of the Sunni jihadist group - ISIS/ISIL or Daesh - claimed responsibility for the attack, according to Associated Press.

In a separate incident, three policemen were killed when a bomb exploded during an anti-terror raid on a militant hideout near Giza' ancient pyramids in Cairo.

"As the explosive expert was working on one of these explosives to secure the apartment, a booby trap blew up, killing three police officers and a citizen passing by," the interior ministry said in a statement on Thursday, according to CNN.

It also said two unidentified dead bodies were also found from the blast site. Islamic State claimed the responsibility for the attack.

The deadly attacks on the Egyptian security establishment comes days before the fifth anniversary of the popular uprising that ended decade long rule of Hosni Mubarak.