The Computations of the Critical Groups with an Application to Elliptic Resonant Problems at a Higher Eigenvalue