A Cuomo administration lawyer who was shot in the head during a predawn celebration before the West Indian American Day Parade last week died on Wednesday evening, according to a family friend.

The lawyer, Carey W. Gabay, 43, was a bystander caught in a shootout in Crown Heights, Brooklyn, that the police believe to have been between gangs.

Mr. Gabay was taken to Kings County Hospital Center, where he was in critical condition in a coma in recent days. His family and friends had been keeping vigil there. He was declared brain-dead on Tuesday night, and then taken off a respirator.

“We ask that our privacy be respected during this difficult time,” Mr. Gabay’s family said in a statement.