Child undergoes surgery to remove 5cm nail from intestine