Extended his arms, realized it was inside, checked his swing and tried to pull his hands in, but got hit square on the fingers. Because he was swinging it was a strike and not a hit by pitch. He stayed up, but on the next pitch he couldn't control the bat and was in a lot of pain.
He then went into the tunnel and got very mad (completely understandable) and x-rays showed two broken fingers, he's done for the year. But so are the Rays, so it's not a huge loss for them.