Ceasefire in Somalia as fierce fighting ends