Somali Prime Minister Mohamed Abdullahi Mohamed on Sunday announced he was resigning following an agreement ending the troubled country's transitional administration.