Upvote:0
You will need a transit visa for Dubai, especially as you will not have a boarding pass for Mogadishu when you board in Delhi.
In fact, I doubt if Air India will let you board without a visa for Dubai.
Upvote:1
Seeing as you're on separate tickets and have to collect luggage, you'll have to clear immigration in Dubai, for which you need a transit visa.
So yes, you do need a visa, which you can get through Air India