A French mayor was filmed laughing and dancing with demonstrators outside a school as violent protests continue to grip the country.