David Sweat is listed in critical condition at Albany Medical Center
Sgt. Jay Cook was alone when he shot Sweat
Sweat's prison-break partner, Richard Matt, was shot dead on Friday
Malone, New York (CNN)A massive, more-than-three-week manhunt for David Sweat ended Sunday as it began, with the escaped murderer in custody.
Authorities said a New York State Police sergeant --identified as Jay Cook -- spotted Sweat, and after Sweat ran, the sergeant gave chase.
"At some point, running across a field, he realized that Sweat was going to make it to a tree line, and possibly could have disappeared, and he fired two shots," New York State Police Superintendent Joseph A. D'Amico told reporters.
Sweat, who was unarmed, was hit twice in the torso.
A photo exclusively obtained by CNN shows Sweat in custody moments after his capture. He appears bloodied and was wearing a camouflage outfit, not prison garb.
He was taken into custody in the town of Constable, in upstate New York, very close to the Canadian border.
CNN exclusive photo: David Sweat during his capture.
"I can only assume he was going for the border, that he was that close," D'Amico said.
Sweat was captured about 16 miles north of the location where fellow escapee Richard Matt was killed last week. The officer was alone when he shot Sweat.
Sweat was transported to the Alice Hyde Medical Center in Malone, an officer at the hospital told CNN. He was later moved to Albany Medical Center, where he was listed in critical condition, according to Dennis McKenna, medical director there.
Emergency, trauma, intensive care, radiology and vascular surgery specialists are involved in his care, McKenna said.
No law enforcement officers were injured during Sweat's apprehension.
"The nightmare is finally over," said New York Gov. Andrew Cuomo. "We wish it didn't happen in the first place. But if you have to have it happen, this is how you want it to end."
The arrest wraps up the statewide search for Sweat and his prison-break partner, Matt. Matt wasshot dead Friday.
Sweat was imprisoned at the Clinton Correctional Facility for shooting dead an officer who pursued him after a robbery he committed.
Guards discovered them missing on June 6, during a routine bed check.
Law enforcement experts stressed Sunday that it's crucial Sweat survive so that officials can learn exactly how he and Matt escaped, and who helped them.
"Now that we have Mr. Sweat, it gives us the opportunity to have some more questions and provide more facts on the overall situation," Cuomo said. "Anyone who we find who was culpable and guilty of cooperating in the escape will be fully prosecuted."
D'Amico told reporters that investigators haven't yet interviewed Sweat, but that they hope to soon.
Investigators have questioned guards at the Clinton Correctional Facility about what conversations they had with the escapees about life outside the prison, according to a law enforcement official.
They believe Sweat and Matt were gathering information for almost a year about hunting cabins and the fields around the prison to help them navigate the terrain.
It's believed their conversations with the guards might have given the escapees some knowledge of how to get around, the official said.
Earlier Sunday, about 1,300 federal, state and local law enforcement officers were searching vehicles at roadblocks and scouring dense woods in upstate New York for Sweat.
Since he and Matt broke out of the maximum security prison in Dannemora together -- and appeared to stick together on their flight from the law -- authorities were hopeful they could be right on Sweat's heels after encountering Matt.
Alexandra Field reported from Malone and Deborah Feyerick from New York. Dana Ford wrote this report from Atlanta. CNN's Ben Brumfield, Ray Sanchez, Linh Tran, Lorenzo Ferrigno, Ashley Fantz, Catherine E. Shoichet, Shimon Prokupecz, Pamela Brown, Jennifer Moore, Polo Sandoval, Jean Casarez, Joshua Berlinger Camille Cava and Katie Tutrone also contributed to this report.