(CNN) The Department of Homeland Security is calling a series of shootings targeting law enforcement in Pennsylvania a "terror attack."

Authorities said Ahmed Aminamin El-Mofty, 51, was shot and killed by police Friday in Harrisburg, Pennsylvania, after he fired several times at law enforcement officers throughout the city.

The string of shootings began just steps from the state's Capitol building when El-Mofty fired several times at a Capitol Police officer and then, shot and injured at a state trooper. Later, he used two handguns to open fire at several officers who then returned fire and killed him, according to a statement from the Dauphin County district attorney's office.

Ahmed Aminamin El-Mofty

Dauphin County District Attorney Ed Marsico said there was "no doubt that he was directly targeting police officers," CNN affiliate WGAL reported.

Tyler Houlton, acting DHS press secretary, referred to the incident as a terror attack in a statement released Saturday. He said the incident highlights the "Trump administration's concerns with extended family chain migration."

Read More