The victim, who lived in a homeless shelter on West 36th Street, and was an avid recycler, according to his Twitter profile, had been sifting through the trash around the corner on 9th Avenue, in front of a row of restaurants, when he was accosted by a man in a dark coat around 11:15 p.m. on Monday, the police said.