Thanks for writing here.
Tip of penis is a part of mucosa and it is quite sensitive.
Pain is due to erosions over mucosa.It can be due to truama,viral infections ,drug rash
In your case it seems to be truama only.
Apply antibiotic cream like fucidic acid two times daily for 5 days.
If still no improvement thn better to consult a dermatologist