An Egyptian affiliate of the jihadist Islamic State group claimed responsibility Friday for a bomb blast during a police raid on a Cairo apartment that killed seven people, including five policemen.