NYPD Crime Scene Unit personal leave the building at 345 Park Ave. in New York City where a gunman armed with a rifle opened fire in the lobby on July 29 in New York City. Shane Tamura, who killed four people before dying by suicide, had a generative brain disease linked to repeated head injuries while playing sports, the city's medical examiner's office said Friday. File Photo by John Angelillo/UPI | License Photo

Sept. 26 (UPI) -- The gunman who killed four people in a New York City office building housing the NFL had a generative brain disease linked to repeated head injuries while playing sports, the city's medical examiner's office said Friday.

On July 28, Shane Tamura, 27, killed himself after opening fire at 345 Park Ave. Tamura's note said: "Study my brain please. I'm sorry."

"Following a thorough assessment and extensive analysis by our neuropathology experts, OCME has found unambiguous diagnostic evidence of Chronic Traumatic Encephalopathy, also known as CTE, in the brain tissue of the decedent," the Office of Chief Medical Examiner said in a statement obtained by ABC News and other media outlets. "The findings correspond with the classification of low-stage CTE, according to current consensus criteria."