French officials say a gunman has surrendered to police after taking two women hostage in a jewelry store in the southern city of Montpellier.