It was definitely a goal kick but I remember the referree doing the "one, two, three" gesture, as if he'd done it several times already, when he absolutely hadn't. He didn't even take particularly long with the one he got booked for.
It just shows how poor the ref was because he subconciously remembered the several minutes we'd spent with the ball in play at Martinez' feet and his tiny brain thought "oh, those times were all set pieces too. I must book him". It was a classic sign of a ref who didn't have a clue.