Pakistan's military has carried out strikes on its border with Afghanistan, targeting hideouts of militants it blames for recent attacks.