You should avoid pulling the nail out. Take the car to a mechanic and get it removed. Removing the nail may expose a puncture that needs to be repaired.