The Somali government offered on Monday to pardon any Islamist fighters who laid down arms after abandoning their final stronghold overnight.