The operation comes a day after militants armed with guns and explosives targeted the regional headquarters of the paramilitary Rangers in the southern port city of Karachi, killing three soldiers.