A far-right policeman has been arrested in France on suspicion of plotting a terrorist attack.