A 17-year-old charged with murdering two girls in New Jersey was allegedly detained for a short time on Monday before he was arrested on Wednesday.