Somali elders in the north of the country say pirates have released two German hostages who were kidnapped more than six weeks ago .