It's from the badminton. The Chinese player was in the semi-final against Carolina Marin of Spain. Marin had won the first game and was leading in the second before having to retire injured.
So He Bingjiao held up a pin with the Spanish flag on it as a mark of respect for Marin, who should really have been in her place on the podium.