You are guilty for letting your dog loose. The police officer gave you a ticket already. You need to compensate your neighbor's loss. It can mean big bill.
You need to be aware that you are involuntary. Better to get a lawyer to protect your rights. You may not be guilty as accused by your neighbor.