The protesters threw stones at police and burned tyres filling the streets with black smoke.
“They (security forces) killed two people and after the demonstration, we understand police killed three more people,” lawmaker Mahad Salad told Reuters.
Rickshaw driver Aden Mohamed said the demonstration started after the shooting of his friend.
“Police deliberately killed my friend and his uncle as they drove in the rickshaw,” Mohamed said.
He added that the protesters wanted to enter the presidential palace in the centre of the city, but the police opened fire on them.