Pakistan was responding to "unprovoked fire" by Afghan forces at multiple locations along the border, the Information Ministry in Islamabad said.