The 24-year-old who police say eluded capture twice and was sought in the shooting of a Baltimore County detective Thursday night in Cockeysville is in custody, the Harford County Sheriff’s Office said early Friday morning.