Ogdensburg man arrested for unlawful imprisonment, endangering a child