A Disk-driven Resonance as the Origin of High Inclinations of Close-in Planets