Ahmad Rahami, the man suspected of planting explosive devices in the US states of New Jersey and New York over the weekend, has been taken into custody. Police shot Rahami as it attempted to arrest him, mayor of the city of Lindon in New Jersey, Derek Armstead, stated later.

"He [Rahami] appears to be in custody. They have apprehended him," Armstead stated in an interview with WABC-TV. "He has been injured. They shot him."

Ahmad Rahami is in custody after shooting a police officer in the city of Liden, New Jersey, NBC News reported citing sources.

Person wanted for questioning in bombings captured in Linden, New Jersey, authorities say https://t.co/RbUywbO0lf pic.twitter.com/aqZhNqulHg — ABC7 Eyewitness News (@ABC7) 19 сентября 2016 г.

The New Jersey mayor has later confirmed the information.

Photo shows Ahmad Khan Rahami, wanted in NY & NJ blasts, in custody after police shooting https://t.co/MVzVp9uaq0 pic.twitter.com/Z71TS7cs1H — PIX11 News (@PIX11News) 19 сентября 2016 г.

WANTED: Ahmad Khan Rahami, 28, in connection to the Chelsea explosion. Call #800577TIPS with any information. pic.twitter.com/rBDQGfXwbh — NYPD NEWS (@NYPDnews) 19 сентября 2016 г.

Earlier in the day, NYPD announced that it seeks 28-year-old Ahmad Khan Rahami in connection to the pressure-cooker bomb.

Ahmad Khan Rahami, a 28-year-old suspected of being behind Saturday’s bombings in New York and New Jersey, sued his local police for alleged discrimination against him and his family for being Muslims.

The 28-year-old and his relatives appeared to have filed a lawsuit against police officers in Elizabeth, New Jersey in 2011 which said they were subjected to "selective enforcement" on the grounds of their religion, The Daily Mail reported.

According to the lawsuit, filed in the federal court in Newark, the Rahimi family, US citizens of Afghan descent, have owned the chicken restaurant since 2002, and from the period between 2009 and 2011 were regularly targeted by police officers for staying open after 10 p.m, regardless of the authorization to do so.

The police officers in Elizabeth department had allegedly humiliated and forced the Rahimis to close their restaurant at 10 p.m., claiming the area around it was notorious for criminal activity, the newspaper added. According to the Rahimis, the business has suffered significant losses as a result of early closures.

Five people were said to be detained earlier in connection with the incident that officials previously declined to link to terrorism.

On Saturday, a total of 29 people have been injured in the explosion that hit New York City’s Chelsea neighborhood in Manhattan on Saturday night. Investigators found a second device that appeared to be a pressure cooker attached to wiring and a cellphone wrapped in a plastic bag on West 27th Street.

A bomb exploded near a US Marine Corps charity race in Seaside Park, New Jersey, about 82 miles south of New York City on Saturday morning. No one was hurt in the incident. On Monday morning, a third bomb exploded near a train station in Elizabeth, New Jersey as police explosives experts were trying to disarm the device.