Authorities have a convicted felon in custody in connection with a series of New York City shootings that killed two people — including a 17-year-old girl — and wounded a third in less than 16 hours, prompting an all-out manhunt that had helicopters whirring over Brooklyn overnight, two officials and sources with knowledge of the case said Tuesday.