LAWRENCE, MASS. >> Authorities have released the name of the Lawrence man they say shot his girlfriend and exchanged gunfire with police before killing himself inside the apartment the couple shared.

The Essex district attorney's office on Wednesday identified the man as 34-year-old Antonio Gonzalez.

Police responded to the Melrose Street scene around noon Tuesday for a report of shots fired.

Mayor Daniel Rivera says responding officers were fired upon, and at least one officer returned fire. Gonzalez, armed with a rifle, barricaded himself inside the apartment.

His 36-year-old girlfriend was taken to the hospital with critical injuries. Authorities said Wednesday that she remains alive. Her name was not disclosed.

The couple's 4-year-old son, who was in the apartment during the shooting, was unharmed. Their 10-year-old child was in school at the time.