An off-duty firefighter happened to be nearby, and stepped in to help