The incident happened sometime early Wednesday morning in the 7700 block of Torresdale Avenue.
Authorities say people heard noise from outside. A number of residents say they saw a man smashing windows and they ran after him.
According to police, the man then tried to carjack a vehicle. The residents called police and the suspect was apprehended.
The windows of more than a dozen cars were damaged during the incident.