A man has been fined and given a suspended prison sentence after his banned pitbull attacked a woman and her dog.