Probing resonances in deformed nuclei by using the complex-scaled Green's function method