Tropical Storm Pilar has caused at least two deaths as it strikes Central America with intense rain and winds.