A cougar that had been kept as an unlawful pet in a New York City house has been removed.