This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

NEW YORK — Police have made an arrest in the brutal anti-gay attack of two men in Brooklyn, police said Wednesday.

Police released a picture of a man accused of making anti-gay comments then attacking two men in Brooklyn on Sept. 23, 2018. (NYPD)

Brandon McNamara, 25, is accused of approaching two men outside the Desert Island bookstore on Metropolitan Avenue in Williamsburg and made anti-gay slurs before assaulting them on Sunday, police said.

The Queens resident allegedly punched the 34-year-old victim in the face and grabbed the 29-year-old, throwing him against a tree.

Both victims lost consciousness and were taken to the hospital for their injuries, police said.

The 34-year-old man suffered a fractured shoulder and the 29-year-old had a broken finger, according to authorities.

McNamara faces two counts each of hate crime assault in the second degree, second-degree assault, and first- and second-degree hate crimes, police said.

The suspect was first pictured in an image released by police after the attack. Police have confirmed the man pictured is McNamara.