It's possible you had a bruise but it's also possible you have blood trapped inside the penis, which may need to be drained by a doctor. Is the area hard or soft when you were not erect?
If you still have this problem you need to be seen by a doctor (preferably a GU doctor) or it can cause permanent damage to your penis.