Bodycam footage has captured the arrest of a US city mayor during a protest at a federal immigration detention centre.