Security camera footage shows narrow escape from burning building