Hundreds of holidaymakers have been leaving the Tunisia beach resort where at least 38 people were killed in a gun attack on Friday.