An NYPD officer was injured when a protester hurled a glass bottle at his face during a demonstration in Times Square over the Sacramento police shooting, authorities said Thursday morning.

The chaos unfolded on Wednesday night, when Black Lives Matter and anti-violence protesters gathered near the red TKTS bleacher stairs on Broadway near West 47th Street.

The crowd largely dispersed once police arrived, but 11 people — six men and five women — were arrested.

Garrett Ramirez, 42, was nabbed after he threw a glass bottle at officers, hitting the male cop in the face and shoulder, police said.

The cop suffered a cut to the inside of his mouth and pain and swelling to his cheek. He was treated at the scene for his injuries.

Ramirez then tried to flee, but was caught shortly thereafter. He was charged with felony assault, obstruction of governmental administration and disorderly conduct, cops said.

He has three priors, but all are sealed.

Ramirez and two other men — Walter Newsome, 40, and James Hagin, 20, who are facing obstruction of governmental administration charges — will be arraigned in Manhattan court on Thursday.

Eight others were issued desk appearance tickets.

The crowd was protesting the fatal shooting of Stephon Clark — the unarmed black man who was killed by police on March 18 in his grandmother’s California backyard.

A pair of responding officers believed Clark was armed and fired 20 shots at him. They later learned he was actually holding a cell phone in his hand.