No, you just had a string of poorly timed instances. Do not be disheartened, this will happen many times throughout life.
Don't get me wrong, I strongly believe witchcraft is real, but it's not all bad and what you did can't really be considered black magic or pervert rituals. You did the right thing, you didn't try to force him to love you, nor did you break the natural order of things. You were just asking for a little bit of love, only you had an unorthodox way of doing so by today's standards.
I believe in magic and if you don't, well that's fine. But you can't expect a spell to work if you don't understand what forces are at work or if you half heartedly believe in it. Not all magic is bad and there is a right way to do it.
The universe isn't punishing you. Even if witchcraft is real, why would it punish something it petmits? Only when you use the craft in a perverse sense to hurt someone or force them to feel something they don't does karma come to collect. Your intentions were good so you can't be condemned for that.
However, the negative events that proceeded your experiment in the occult could be Karma related from a past life if not this one. If you consider the history of occult practitioners, who delved into some pretty dark stuff, their comeuppance didn't always come in this life... the sad part is you can't prove it ever came up at all.