Testis can get injured due to trauma.
Bleeding can be due to broken scrotal skin or from testis itself.
Get a Colour doppler scrotum
to check the viability of the testis.If it is viable,place it inside scrotum and suture the skin.
Please take antibiotic and anti inflammatory drug .
Nothing to worry