The Israeli military says it carried out strikes in Gaza City during a raid by special forces to capture the head of Hamas's internal security service.