A terrorist convicted of bombing New York City's Chelsea neighborhood was convicted of attempted murder Tuesday for opening fire on New Jersey police officers in a broad daylight shootout during his arrest.

Ahmad Khan Rahimi, a homegrown Islamic terrorist who lived in Elizabeth, NJ, was already facing a lifetime in prison on a federal conviction for detonating a series of pressure cooker bombs in a terror plot in Manhattan and New Jersey in 2016. More than 30 people were injured in that attack.

On Tuesday, a jury in Union County, NJ, found the 31-year-old guilty of five counts of attempted murder of a law enforcement officer as well as multiple counts of aggravated assault and weapons charges, the New York Post reports.

The state charges stem from his September 2016 arrest that started when officers found the wanted bombmaker sleeping in front of a Linden, NJ, bar after the owner called police about a suspected bum.

When officers arrived around 10:30 a.m., Rahimi pulled a 9mm pistol and opened fire — hitting one of the Linden officers in the torso and in his ballistic vest, according to authorities.

Police and Rahimi exchanged gunfire for several blocks until he was shot multiple times outside an auto repair shop and officers arrested him.