Afghan officials say overnight airstrikes by Pakistani forces have killed at least 36 civilians and injured more than 160.