An Additional District Magistrate (ADM) was injured after being assaulted with a cricket bat in Ghaziabad on Sunday, police said.
The attacker identified as Jasbir Singh, a former army man, has been detained.
Madan Singh Garbyal was out for a walk when he was attacked at around 7 pm, District Magistrate Ajay Shankar Pandey told reporters.
"The attack took place in Vishwanath Park in sector 14 in Raj Nagar. The ADM was attacked with a (cricket) bat and has received injuries on his head and face. He has been kept in the intensive care unit (ICU) but is out of danger," he said.
According to the DM, Mr Singh was dismissed from the army in 1995 after being court martialled.
"He (Singh) worked as a bouncer in a mall but lost his job... it appears that he is mentally unstable," Mr Pandey said.
Senior Superintendent of Police (SSP) Ghaziabad, Kalanidhi Naithani said they were probing the reason behind the attack.
Top Official Transferred For Allegedly Demanding Alcohol From Juniors Senior Noida Cop To Probe Army Veteran, Government Official's Dispute IAS Officers Embrace Families Of Martyred Soldiers; Offer Care, Support And Advice 9 Dead, 2,800 Hurt As Pagers Explode Across Lebanon, Hezbollah Blames Israel 3 Grams Of Explosives Per Pager: Israel's Complex Op To Hurt Hezbollah "Wear Proper Undergarments": Delta Airlines' New Memo For Flight Attendants New XEC Covid Variant Spreads To 27 Countries, Here's What We Know So Far "Only Consequential Presidents Get Shot At": Trump After Assassination Bid Israel On Alert As Hezbollah Vows Retaliation Over Pager Attacks In Lebanon Track Latest News Live on NDTV.com and get news updates from India and around the world.