Yardley Borough Police Chief Joseph Kelly was shot twice at the Yardley Commons complex on August 18.
YARDLEY, Pennsylvania (WPVI) -- A police chief in Yardley, Pennsylvania has been released from the hospital after he was shot during a standoff situation on Wednesday.
It happened around 11 a.m. at the Yardley Commons Condominium along the area of South Main Street.
SEE ALSO: Suspect arrested after police chief shot during standoff in Yardley, Pennsylvania
Police say a probation officer had arrived to the location to check on 24-year-old Colin Petroziello. But the officer soon had to call Yardley police for assistance.
Yardley Borough Police Chief Joseph Kelly responded to that call and was subsequently shot in the hand and ear. He was rushed to St. Mary Medical Center where he underwent surgery.
Action News was there the moment he was released Thursday. There was a roaring applause as Kelly got up from his wheelchair to hug his fellow officers, family and friends.
Police say Petroziello fired a shotgun through the door of his condo with his mother inside at the condominium.
Before his release on Thursday, Yardley Borough employees gathered to show support for Kelly, even bringing him his favorite hoagies from Landolfi's Cafe & Deli.
"I know today he's going to have some surgery on his hand to remove some bullet fragments and pellets," said Lower Makefield Township Police Chief Ken Colluzi. "He's in great spirits he's doing very well."
Coluzzi is a friend and works closely with Kelly as they both head neighboring police departments.
Coluzzi said the chief heard a probation officer in need of assistance and ran to his aid.
"He saw a probation officer who needed help and he went there. Everybody is kind of taken aback when they hear police chief shot, we're here to help each other and that's what Joe did," said Coluzzi.
SWAT team surrounded the condominium complex and ultimately got Petroziello to surrender using flashbangs hours after the shooting.
Only Action News was there as Petroziello was escorted before Magisterial Court Judge Joseph Falcone Wednesday night. He had nothing to say.
Petroziello is being charged with attempted murder of a law enforcement officer.
Kelly has been the police chief in Yardley since 2015 and was an officer across the river in New Jersey prior to serving the Bucks County community.
A separate incident that originated in Bucks County also led to an officer-involved shooting in Philadelphia.
In that case, police killed a suspect after a gun battle that lasted minutes.
SEE ALSO: Bucks County shooting suspect shot dead after police chase ends in shootout
Police responded to a call of an "armed domestic situation" and found 29-year-old Terrence Bey in Levittown at an apartment complex in the 2000 block of Veterans Highway.
According to police, a chase then ensued with Bey, who led Bucks County officers into Philadelphia where he crashed.
A shootout then ensued. At least one Philadelphia officer and one Bucks County officer fired their weapon.
"A responding PPD Counter Terrorism officer observed Bey running toward the Sunoco along Adams Avenue where he observed Bey discharge his firearm at police. At that point, Bey continued to run with the firearm in his hand. A responding 15th District Police Officer, Officer #2, discharged his weapon at Bey at least 1 time, after Bey pointed his firearm at him, striking Bey in the head," said Philadelphia police in a news release.
Bey died at the scene. Police say they recovered Bey's Glock 22, .40 caliber semiautomatic weapon, with an obliterated serial number.