Egypt signed a security pact with Mogadishu earlier this month and has offered to send troops to a new peacekeeping mission in Somalia.