After residents in Saudi Arabia's capital reported hearing rare bursts of gunfire on Saturday evening, followed by videos of heavy shooting that circulated on the Internet, the Saudi government said it had an explanation: Someone had flown a recreational drone, without authorisation, and security forces had shot it down.

A government statement said that guards at a checkpoint in Riyadh, the capital, observed the drone shortly before 8 p.m., in the Al-Khozama neighbourhood, where a palace belonging to King Salman, the Saudi monarch, is located. The security forces “dealt with it according to their orders,” the statement said.

“It was a small remote-controlled toy airplane that came into restricted airspace and was immediately shot down,” said a Saudi official who requested anonymity because he was not authorised to speak to the news media.

The gunfire took place in the Al-Khozama neighbourhood of Riyadh on Saturday night (AP Photo/Amr Nabil)

A retired government official who lives in the neighbourhood said that he heard gunfire, but it had only lasted a short time. “It went on maybe for two or three minutes,” he said, declining to be named. “It is quiet now,” he added.

Saudi security forces have been on high alert because of frequent attacks coming from Yemen, where a Saudi-led coalition is participating in that country's civil war.

A Yemeni rebel group has fired dozens of ballistic missiles at Saudi cities and towns over the past few years, including towards Riyadh. In March, missile fragments plunged into a house in Riyadh and killed an Egyptian construction worker.

The Yemeni rebels, known as the Houthis, have also claimed to have carried out armed drone attacks on the Saudi-led coalition in Yemen, as well as on Saudi territory.

Saudi Arabia is also in the midst of a sweeping social and economic transformation carried out by Crown Prince Mohammed bin Salman. The changes have included the easing of social restrictions – like the prohibition on women driving – but also a determined consolidation of power under Prince Mohammed that has sidelined rivals and landed dissenting voices in jail.

Saudi Arabia's camel festival Show all 11 1 /11 Saudi Arabia's camel festival Saudi Arabia's camel festival Camel festival The camel is a symbol of Saudi Arabia. The annual King Abdulaziz Camel Festival celebrates all things camel, with beauty contests and races. Thuymi Do Saudi Arabia's camel festival Camel festival This year, the massive 30-day event drew 600,000 people and more than 30,000 camels. When not rooting for the most beautiful camel or cheering along the fastest ones, there’s plenty of other entertainment. Here people gather to watch a live music display. Thuymi Do Saudi Arabia's camel festival Camel festival This year the camel festival made international news when 12 camels were disqualified after receiving lip-plumping botox injections. Amid the scandal, there’s more pressure than ever to make sure camels are all-natural and healthy. Here, men roam between camels to check they’re fit for display. Thuymi Do Saudi Arabia's camel festival Camel festival Camels are judged by the shape of their head, their height, their noses and more. In one enclosure, particularly rare and beautiful camels are on show. Thuymi Do Saudi Arabia's camel festival Camel festival Moving camels from one part of the festival to another is no simple task. A driver escorts an entire group. Thuymi Do Saudi Arabia's camel festival Camel festival Now there’s a three-step process involving vets and camel experts to ensure no beauty beast gets a botox bias, said Dr. Fahd bin Abdullah Al-Sammari, general supervisor of the King Abdulaziz Foundation. Thuymi Do Saudi Arabia's camel festival Camel festival Men wait for the camel races to start. With 6,120 camels participating in the races in 2018, the festival set a new Guinness World Record. Thuymi Do Saudi Arabia's camel festival Camel festival A blue-eyed camel is placed into a separate enclosure, marked for its beauty. Thuymi Do Saudi Arabia's camel festival Camel festival Camel trainers relax beside racing camels before the excitement starts. This year the festival rolled out a brand new 8km track that accommodates 100 camels and 200 cars. Thuymi Do Saudi Arabia's camel festival Camel festival While most people watch the camel races from the outdoor stands, a special VIP tent is available for more luxurious viewing. Thuymi Do Saudi Arabia's camel festival Camel festival As the national anthem is played, festival attendees stand respectfully. Thuymi Do

In videos purportedly recorded in Riyadh on Saturday that were shared on social media, the sounds of heavy barrages of gunfire could be heard. The authenticity of the videos could not be independently confirmed.

A Saudi official told the Reuters news agency that King Salman was not in his palace when the shooting took place.