A New Jersey man accused of murdering a man at a campground was captured after a nearly four-week manhunt, authorities said Tuesday.