He pleaded guilty to criminal harassment, uttering a death threat and breaking a no-contact order