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.

Peace deal hopes fade after Trump rejects Iran proposal
UK's Starmer defies calls to quit, says he is getting on with governing
New Israeli law sets military tribunal for those linked to October 7 attack
Russia strikes Ukraine with drones as ceasefire ends
Dutch hospital quarantines 12 over breach of hantavirus protocol
Brazilian flotilla activist returns home, alleges torture during Israel detention
Ten killed in blast in northwest Pakistan market, police say
India's Modi to begin five-nation tour, including UAE
