Train attack thwarted in France