A gunman shot at a prominent Sikh politician outside the Golden Temple in northern India on Wednesday before police caught and arrested him.
The politician, Sukhbir Singh Badal, former deputy chief minister of Punjab state, was unharmed.
The shooter, identified by police as Narain Singh, 68, was seen in TV footage from news agency ANI walking to the entrance of the temple in Amritsar city, the holiest shrine for Sikhs, and stealthily removing a gun from his pocket to fire at Badal.
He was stopped and pushed away by a policeman in plainclothes who was standing next to Badal, but not before he fired a stray shot, which did not hit anyone, police said.
"Due to the alertness and deployment of our police, this attack attempt was foiled," Amritsar Police Commissioner Gurpreet Singh Bhullar told reporters, adding that the gunman had been arrested.
The reason for the attack was not immediately clear.
Badal, a former ally of Prime Minister Narendra Modi's Bharatiya Janata Party, was sitting outside the Golden Temple doing a penance ritual imposed on him by the Akal Takht, Sikhism's highest body.
Sikhism is one of the country's main religions, and Sikhs form nearly 2% of India's 1.4 billion population.
In 1984, then-Prime Minister Indira Gandhi sent the military into the Golden Temple to evict armed Sikh separatist leader Jarnail Singh Bhindranwale and his supporters.
A few months later, Gandhi was assassinated by her Sikh bodyguards at her home in New Delhi.

Israeli strikes kill 26 in Gaza, health officials say
US government starts likely brief shutdown as House fails to approve deal
Thousands demonstrate in Minnesota and across US to protest ICE
France tightens infant milk rules after recalls
Modi ally proposes social media ban for India's teens as global debate grows
Indonesia landslide death toll rises to 49, agency says
Syrian government, Kurdish-led SDF agree integration deal
Trump warns Britain on China ties as Starmer hails progress in Beijing
