Pakistan's defence minister has said the country is in an "open war" with neighbouring Afghanistan, after both nations launched strikes overnight.