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.

Trump says Iran war deal close as Strait of Hormuz tensions linger
Ukraine and Russia trade overnight drone strikes, officials say
UN says Taliban arrest 30 women for violating hijab rules in Afghanistan
Trump cancels US strikes on Iran, citing progress in talks
South Korea court sentences ex-President Yoon to 30-year jail term in drone case
Thai king's eldest daughter dies, aged 47, after long illness
US confirms third strike on Indian-crewed tankers this week
UK defence minister Healey quits, says PM Starmer's plans fail to keep country safe
