BOSTON (CBSNewYork/AP) — A Pakistani man arrested in Massachusetts during the investigation into the failed Times Square bombing was willing to admit he lied to federal agents and be deported under a plea deal.

The Boston Globe reported that according to court papers, Aftab Ali Khan would plead guilty, be sentenced to time served while awaiting, trial, and be deported to Pakistan.

READ MORE: Driver Charged With DWI, Manslaughter In Crash That Killed Mother, Daughter On Rockaway Boulevard In Queens

Khan has been in federal custody since last May when he, his uncle and a man in Maine were arrested in connection and the failed attempt to bomb Times Square in New York City on May 1, 2010.

He was charged with immigration fraud and lying to investigators.

READ MORE: Pelosi Taps Republican Congressman Adam Kinzinger For January 6 Select Committee

Authorities say Khan unwittingly supplied $4,900 to Faisal Shahzad of Bridgeport, Conn., who was later convicted in the attempt. Khan was not accused of knowing about or participating in the plot.

A lawyer for Khan complained about his client’s treatment in jail, saying he was being held in his cell 23 hours a day and was shackled “hand to foot” when she visited him.

MORE NEWS: NYC DOT Asks New Yorkers To Weigh In On Future Citi Bike Station Locations In Brooklyn, Queens

(TM and Copyright 2011 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2011 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)