Prince Harry delayed plans to take part in a military display in Jamaica in the wake of news of the deaths of six servicemen in Afghanistan.
"The prince doesn't want to take part in a military activity deemed peripheral to an Apache pilot when the focus for the British Army should be on its core professional roles and looking after the bereaved of those killed in Afghanistan," St James's Palace said.
The prince, who was named best gunner in his Apache helicopter training group last month, scored 39 out of 40 as he shot at a target from 30metres using a M4 Rifle, reported the Telegraph.
After his firearm practice session, the prince co-piloted a helicopter to William Knibb Memorial High School in the town of Falmouth. Students gathered there greeted him with loud cheers.
He interacted with the students and then visited Falmouth Pier, where he was given a tour of the facility before boarding a trolley to see the sights of Falmouth, a report in the Jamaica Information Service said.
The prince also stopped at William Knibb Baptist Church and the historic St Peter's Anglican Church, where he unveiled a plaque in honour of his visit, before going to the 18th century plantation house called Good Hope.
The Prince is in the Jamaican island on a four-day visit to mark the diamond jubilee celebrations of the queen. He will be visiting Brazil on 9 March. The 60th anniversary of the Queen's Accession to the throne was celebrated on 6 February.