People have been warned to make sure their air fryers are kept in good working order after one of the appliances caught alight in a kitchen.