An employee of Germany's intelligence agency has been arrested for allegedly sharing protected materials and making Islamist statements online.