By CBS3 Staff

PHILADELPHIA (CBS) — A 37-year-old man has been arrested Thursday after a shootout in Philadelphia’s Kingsessing section, police say. It happened around 11 p.m. Wednesday on the 5500 block of Greenway Avenue.

The gunbattle involved two men, according to officials.

READ MORE: Mayor Kenney Signs Bill To Lower City's Wage Tax, Giving Very Small Boost To Paychecks

Police say a 44-year-old man arriving home found a 37-year-old man coming out of his house carrying bags. The 44-year-old man told police a confrontation happened with man, which led the 37-year-old to pull out his firearm. 

According to police, the 44-year-old man returned fire. A gun battle ensued with the two men firing a combined 28 times. Sources say the man may have been the boyfriend of the shooter’s wife. 

Man Critically Injured After At Least 28 Shots Fired During Gun Battle In Philadelphia's Kingsessing Section

When police arrived on the scene, they found the 44-year-old man in front of a silver pickup truck. Police recovered a black Glock 17/9mm handgun from the man, but he claims he owns it. They also found three magazines.

READ MORE: Arson Suspect Arrested In Connection To Fire, Building Collapse That Killed Philadelphia Fire Lt. Sean Williamson

About an hour later, police received information about the 37-year-old showing up at a local hospital in a private vehicle. He was shot in his right shoulder and both of his feet, police say.

Once police arrived at the hospital, they arrested the 37-year-old and recovered a weapon.

Two houses on the block were hit by gunfire, but no one inside those homes was injured.

MORE NEWS: Signs, Strike Pay Signup As Union Representing Atlantic City Casino Workers Readies For Casino Walkout

For a list of gun violence resources in Philadelphia, click here