A 49-year-old Rajasthan state government employee, who was detained in Jaisalmer on suspicion of espionage for Pakistan, had a connection with a former minister in the ex-Ashok Gehlot-led government, sources said.