The Met was keen to stress that officers were some distance away from the Duke and Duchess of Cambridge's home when the royal protection officer accidentally fired a gun and that no one else was at risk.
Prince William or Flight Lieutenant Wales as he is known in his capacity as a RAF search and rescue helicopter pilot, captains Sea King helicopters from his unit's base at RAF Valley in north Wales.
Police would not comment on the type of gun, but royal protection officers routinely use 9mm Glock 17 pistols.
More top news
Police have released CCTV footage to try to track down a gang who robbed two teenagers of their bikes and mobile phones.
An 18-year-old man has become the first person to be convicted following a night of what police describe as "disorder" in Hyde Park.
Protesters are staging a beach party outside the French Embassy to campaign against a ban on burkinis on some French beaches.