Exchanges of live fire across the contested border between Pakistan and India have raised fears of an all-out war.