BUFFALO, N.Y. — In the moments after Border Patrol agents dropped him off at a Buffalo doughnut shop, surveillance video recorded Nurul Amin Shah Alam stepping gingerly through the empty parking lot in his county-issued jail booties. He pulls up his hood against the cold as he walks past a drive-thru window, then paces away into the night.

Five nights later, the nearly blind refugee from Myanmar was found dead in the street, raising questions about whether federal agents could have done more to ensure his safety when they released him from custody, miles from his home, without informing his family or lawyer.

The video obtained by the Investigative Post shows Shah Alam, 56, after agents dropped him off at a Tim Hortons on the night of Feb. 19, the day he was released from a county jail where he had been held for a year. Buffalo Mayor Sean Ryan has said the restaurant was closed at that time.

The nonprofit news site said the footage it obtained shows Shah Alam being let out of the Border Patrol van, which can be seen driving away, then walking by the restaurant’s locked front door.

U.S. Customs and Border Protection said this week that agents chose “a warm, safe location” for the drop off.

Shah Alam was found dead Tuesday outside the arena where the NHL’s Buffalo Sabres play. A woman called 911 to report his body lying in the sidewalk.

The county medical examiner was investigating the cause of death.

Customs and Border Protection said agents offered Shah Alam “a courtesy ride” to a location near where his family had once lived and that he had accepted the ride and showed no signs of distress or disability. The agency did not respond to an email seeking comment Friday.