GUWAHATI, Nov 27: The Gujarat Anti-Terrorism Squad detained Mohammed Shaharul Islam, a resident of Assam's Karimganj district, alleging that he had links with Pakistan-based Jaish-e-Mohammed and planned an attack on the Vadodara Air Force station.

The ATS said Islam was detained near Golden Chowkdi on the Halol-Vadodara highway in Gujarat's Panchmahal district. It claimed to have recovered an AK-47-like automatic firearm, 23 live rounds and a flag linked to JeM from his bag.

ATS Deputy Superintendent of Police Harsh Upadhyay led the operation after the agency received specific intelligence that a suspected JeM member had entered Gujarat with an automatic weapon to target a security establishment, officials said.

ATS DIG Sunil Joshi said Islam had switched off his regular mobile phone and stayed at a hotel near Sayajiganj railway station in Vadodara. He left the hotel before the investigating team arrived, following which the ATS tracked his movements through hotel information and other intelligence inputs, Joshi said.

The ATS said it received information that he was returning to Vadodara from Dahod and set up checks and roadblocks at several locations before detaining him near Golden Chowkdi.

The ATS said Islam's WhatsApp chats and photo gallery contained photographs and videos of the entrance to the Vadodara Air Force station. The agency also claimed to have found a video on operating an automatic rifle on his phone.

Joshi said preliminary investigation indicated that Islam had been in contact for about a year with a Pakistan-based JeM handler identified as Mufti Rafiq alias Ibn Abdullah. The handler allegedly provided Rs 50,000 for travel, hotel stay, purchase of a new mobile phone and other expenses, he said.

The ATS alleged that Islam travelled from Assam to Bhopal by train and then reached Vadodara by bus. It suspects that he collected photographs and videos of the Air Force station entrance on the handler's instructions, went to Dahod where he allegedly obtained the weapon, and was detained while returning to Vadodara. The ATS has registered a case under relevant provisions of the Unlawful Activities (Prevention) Act and the Bharatiya Nyaya Sanhita. The allegations have not been proved in court.