Authorities say some 400 extremists pelted police with bottles as they protested restrictions on refugees and asylum seekers in G8 countries .