Following manhunt, Frank R. James detained in Manhattan's East Village neighborhood, a day after attack that left 10 people wounded by gunfire