Gaurav Kumar was arrested from Rohtak's Model Town area yesterday based on information received by state and central intelligence agencies, Superintendent of Police Pankaj Nain said.
Kumar has been booked under the provisions of the Official Secrets Act and under relevant sections of the IPC.
A resident of Ganaur city in Sonepat district, Kumar had befriended two women, who worked for Pakistan's Inter-Service Intelligence, more than a year ago on Facebook, Mr Nain told reporters.
"Preliminary investigations revealed that Gaurav was trying to get recruited in the Army for a long time and had been preparing for examinations conducted by the Army," he said.
Mr Nain said the two women befriended Kumar after he told them he was working with the Indian Army. After gaining his trust, the women started communicating with him regularly.
"They later asked him to work for ISI and provide information about Army camps, while promising to pay him hefty sum for this. He even shared his bank account details with them. He was asked to share photo, video and other details of the military areas," Mr Nain said.
Last month, a man who allegedly worked as a spy for the Pakistani intelligence agency was arrested in Amritsar district by the State Special Operations Cell of the Punjab Police.
Pakistan-based agencies operate a large number of fake Facebook accounts in the name of young girls who actively try to befriend unemployed young people and retired or serving officials in the armed force and subsequently try to allure them into espionage activities.
(This story has not been edited by NDTV staff and is auto-generated from a syndicated feed.)