The killings of the imam, Alauddin Akonjee, 55, and his assistant, Thara Miah, 64, have shaken those in the Bangladeshi community, many of whom reside in the area around Ozone Park where the men lived, worshiped and were killed.
On Sunday night, officials said the man got into the car and rammed into a police vehicle as he tried to flee.
The man was arrested in connection with the hit and run and hitting the police vehicle.
Still, Chief Boyce said investigators had not determined the motivation for the attack, and that it was unclear if the man had any connection to the two murder victims.
Hardy Marston, 18, and Rafael Santos, 27, were charged with murder, gang assault and criminal possession of a weapon.