A 16-year-old boy was busted Friday for opening fire on a Bronx street — narrowly missing a little girl — and officials believe the shooting was part of a gang feud.

Edgar Garcia was taken into custody after some “old-fashioned” “pounding the pavement” investigating led detectives to his location, NYPD Chief of Detectives Dermot Shea said at an afternoon press conference.

“It wasn’t hard, people were outraged . . . the whole country I think has seen this video of the little girl,” Shea said. “I’m happy to report significant progress on this. We have the shooter in custody as we speak.

“Great work by our Bronx detectives.”

Garcia, an alleged member of Los Vagos, a Mexican gang with a stronghold on 116th Street in Manhattan, was engaged in an “ongoing dispute” with a rival gang called Los Cholos, another Mexican gang that has operations in The Bronx, police said.

The shooter was caught on camera Feb. 22 in a now-viral video released Wednesday evening wearing a blue puffer jacket and clutching a gun with both hands, aiming at a group near the corner of Gerard Avenue and 167th Street.

Authorities said Garcia was targeting a 19-year-old man believed to belong to Los Cholos and four others in Concourse.

As Garcia fired three rounds in their direction, the young girl in bright pink leggings, who had been walking toward Garcia, tore off in the opposite direction and ducked for cover as bullets whizzed past her.

Meanwhile, the rival gang members took off and, miraculously, no one was hurt.

Garcia was hit with a number of charges on Friday night, including attempted murder, attempted assault, criminal use of a firearm, criminal possession of a weapon and reckless endangerment, police said.

Shea called the investigation “still fresh” with “a lot of work going on” but expects Garcia to be prosecuted by the Bronx District Attorney’s Office.

The NYPD tweeted the news Friday.

“Thank you to the concerned community in the Bronx as well as the @NYPD44Pct & detectives for their hard work on this case,” the tweet read.