On Weyl function and generalized resolvents of a Hermitian operator in a Krein space