CAIRO  In just the last two weeks, Islamist militants have detonated a car bomb at the gates of the capital’s security headquarters, gunned down a senior Interior Ministry official in broad daylight and shot down a military helicopter over Sinai with a portable surface-to-air missile.