Meet Yoda, the dog who helped law enforcement catch Danelo Cavalcante

SOUTH COVENTRY TOWNSHIP, Pa. (CBS) -- The search for escaped prisoner Danelo Cavalcante came to an end Wednesday on the 14th day of the manhunt in South Coventry Township, and a furry friend played a huge role in ending the search.

RELATED: What you need to know about Chester County Prison escape, timeline and more

Yoda, a 4-year-old Belgian Malinois, bit Cavalcante as he tried to escape while tactical units closed in on the convicted killer, officials said in a news conference following the capture.

Yoda is a part of the BORTAC K9 unit with the U.S. Customs and Border Protection.

Border patrol agents from Buffalo, Detroit, Blaine, Washington, Swanton, Vermont and El Paso, Texas helped in the search with other federal, state and local law enforcement to catch Calavante with Pennsylvania State Police leading the manhunt.

RELATED: How police ultimately recaptured Danelo Cavalcante after 14 days on the run

Earlier in the search, a different K-9 suffered heat exhaustion as the Philadelphia area dealt with a heatwave.

Law enforcement took Cavalcante, who was wearing an Eagles hoodie at the time, back into custody without incident, police said.

Officials said a combination of aircraft with thermal imaging and K-9s led to bringing Cavalcante back into custody.

Cavalcante escaped from Chester County Prison back on Aug. 31.

The manhunt spanned in several different locations in the rural county, from the south region in Longwood Gardens to the northern part of the county in South Coventry Township.

A video released by officials showed how Cavalcante, who was also wanted for murder in his native county of Brazil, escaped the prison by climbing up a wall and then getting past barbed wire.

Before escaping, Calvacante was sentenced to life without parole for fatally stabbing his ex-girlfriend, Deborah Brandao, 38 times in the Phoenixville area in 2021 in front of her two young kids.

Cavalcante was immediately examined by medics after he was recaptured and transferred by a SWAT vehicle to the state barracks in Avondale, according to state police.

RELATED: What's next for Danelo Cavalcante after escaped prisoner recaptured

The convicted killer will then be reprocessed and taken to a state institute to serve his life sentence.

What the latest DACA ruling means for "Dreamers"

Georgia judge separates Trump's election interference case

Princess Diana's black sheep sweater auctioned for $1.1 million