As someone said, could it have been that the person you did that to didn't know it was you that sent them, informing the police, who then tracked it to you and made the visit without your friend knowing? If he/she realised it was only a prank from a friend they may be completely understanding and would have let it go as a joke, but if it was completely out of the blue from some stranger then they're likely to be more upset.
I'd stick with the warning not to get in contact immediately in case he/she does know it was you and still feels this way, but try and get a mutual friend to talk to them and see if they know, and if so, if there are any chances for reconciliation.
Hope it works out.