Pakistan carried out airstrikes in certain areas in Afghanistan in what it said was aimed at targeting some terrorist hideouts.