A generalized Hamiltonian constraint operator in loop quantum gravity and its simplest Euclidean matrix elements