Witnesses reported to officials that Gonzales was seen walking in the street with a handgun and rifle and making incoherent statements while waving the firearms around, a police spokesperson said.
When officers arrived at the scene, it was discovered that he had gone into a home, authorities said.
"The suspect was observed at the front of the residence with the weapon posing a threat and shots were fired," a police spokesperson said. "The suspect retreated into the residence and within a few moments was observed at the back of the residence with a weapon posing a threat."
A second shooting occurred and Gonzales went inside the home where he appeared to be injured, officials said.
He was then detained without further incident and taken to the hospital after being shot in the arm.
A police spokesperson said no officers were injured in the incident.
On Saturday night, police said Gonzales had died at the hospital.
The exact cause of death will be determined by the Medical Examiner's Office.