I will sketch just the idea omitting several (actually important) mathematical details.
If F=F[ψ] is a functional, we define, if exists, its functional derivative δFδψ as the function (a distribution, more generally) such that
dF[ψ+hϕ]dh|h=0=∫δFδψ(x)ϕ(x)dx
for every test function ϕ. Now suppose that ψ parametrically depends on the parameter θ. We have
dF[ψθ]dθ=limh→01h(F[ψθ+h]−F[ψθ])
=limh→01h(F[ψθ+h∂θψ+Oθ(h2)]−F[ψθ])
=limh→01h(F[ψθ+h∂θψ]−F[ψθ]).
=dF[ψθ+h∂θψθ]dh|h=0.
Applying the definition of functional derivative given above, we have that
dF[ψθ]dθ=dF[ψθ+h∂θψθ]dh|h=0=∫δFδψθ(x)∂θψθ(x)dx.
There are several open mathematical issues in the outlined procedure (for instance dropping Oθ(h2) in the formula above is not so easy as it could seem at first glance). Nevertheless, everything goes right (it can be proved by direct inspection) when dealing with functionals F[ψ] of integral form like the one you consider and assuming to work with a domain of suitably smooth and rapidly vanishing at infinity functions.