Residents of Tathra in New South Wales had to flee via the beach after a bushfire swept through their town.