An attack on the Indian consulate in Afghanistan's Jalalabad city was foiled on Sunday after a Taliban militant was arrested, the national intelligence agency said. 

The National Directorate of Security (NDS) reportedly said that the arrested man, identified as Nasir, confessed to being a Taliban suicide bomber and revealed his plan to attack the Indian consulate after he was arrested in the restive Nangarhar province. 

According to TOLO News, the Taliban has not yet issued a statement on the foiled attack. 

Last week, the NDS had reportedly arrested two Isis terrorists in Jalalabad, and some reports had said that they had plotted to attack vehicles near the Indian consulate. 

The Indian consulate in Jalalabad has been targeted by terrorists for the past few years. In 2013, Afghan forces foiled a suicide attack on the consulate, but at least 12 people were killed after the suicide bombers detonated their device near the compound. 

Last May, the Indian consulate in Herat was attacked soon after Narendra Modi became the Indian prime minister.

The consulate was reportedly shifted to a more secure location this year.