Getting attacked by the same player more than once can happen if you and your opponent are around the same trophy count and not many players are offline around this count. It's possible that your opponent trained his troops very quickly for another attack during the same session, and then found you again.

Don't worry, there is no hacking involved. The search is still random, and no player can choose whom to attack.