I believe DP's have a potential attack range of 1000 IP, so your opponent sent out his DP, which closed range with you and you shot it, preventing it from attacking you. DP attacks are always melee, so you are effectively always within melee range when defending yourself against a DP attack.