Shields throws 4-hitter in Rays win