Pakistani and Afghan officials have both declared full military operations as border clashes intensify.