Tropical Storm Barbara becomes a hurricane