He had completely free teammate in the last minutes after Barca made good buildup and created space on the left flank. If he'd passed, the guy would be almost 1v1 with keeper, but he decided on low probability long shot that was easily blocked. I mean, yes, it 's friendly, but... why?