An armed shooter (shown) attacks at the Earle Cabell federal courthouse Monday morning, June 17, 2019 at the in downtown Dallas. Law enforcement returned fire and the shooter was hit by gunfire. No officers or citizens were injured. (Tom Fox/The Dallas Morning News) -
PHOTO: Tom Fox/The Dallas Morning News
An armed shooter (shown) attacks at the Earle Cabell federal courthouse Monday morning, June 17, 2019 at the in downtown Dallas. Law enforcement returned fire and the shooter was hit by gunfire. No officers or citizens were injured. (Tom Fox/The Dallas Morning News) -
Now playing
02:00
Instead of running, a photographer took this chilling photo
WASHINGTON, DC - JANUARY 16:  Physician to U.S. President Donald Trump Dr. Ronny Jackson listens during the daily White House press briefing at the James Brady Press Briefing Room of the White House January 16, 2018 in Washington, DC. Dr. Jackson discussed the details of President TrumpÕs physical check-up from last week.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
WASHINGTON, DC - JANUARY 16: Physician to U.S. President Donald Trump Dr. Ronny Jackson listens during the daily White House press briefing at the James Brady Press Briefing Room of the White House January 16, 2018 in Washington, DC. Dr. Jackson discussed the details of President TrumpÕs physical check-up from last week. (Photo by Alex Wong/Getty Images)
Now playing
03:14
DOD releases scathing review of former White House physician
PHOTO: CNN/Getty
Now playing
02:10
'Highly misleading at best': Dale reacts to Pence's op-ed
PHOTO: Gov. Cuomo's office
Now playing
03:35
Gov. Andrew Cuomo addresses women's allegations
Commanding General District of Columbia National Guard Major General William J. Walker testifies before the Senate Homeland Security and Governmental Affairs/Rules and Administration hearing to examine the January 6, 2021 attack on the US Capitol on Capitol Hill on March 3, 2021 in Washington, DC. (Photo by Greg Nash / POOL / AFP) (Photo by GREG NASH/POOL/AFP via Getty Images)
PHOTO: GREG NASH/POOL/AFP via Getty Images
Commanding General District of Columbia National Guard Major General William J. Walker testifies before the Senate Homeland Security and Governmental Affairs/Rules and Administration hearing to examine the January 6, 2021 attack on the US Capitol on Capitol Hill on March 3, 2021 in Washington, DC. (Photo by Greg Nash / POOL / AFP) (Photo by GREG NASH/POOL/AFP via Getty Images)
Now playing
03:01
DC National Guard commander: 'Unusual' Pentagon restrictions slowed response to Capitol riot
Supporters of President Donald Trump hold up their phones with messages referring to the QAnon conspiracy theory at a campaign rally at Las Vegas Convention Center on February 21, 2020 in Las Vegas, Nevada.
PHOTO: Mario Tama/Getty Images
Supporters of President Donald Trump hold up their phones with messages referring to the QAnon conspiracy theory at a campaign rally at Las Vegas Convention Center on February 21, 2020 in Las Vegas, Nevada.
Now playing
03:00
Hear why QAnon supporters believe Trump will be president on March 4th
FBI Director Christopher Wray testifies before the Senate Judiciary Committee on the January 6th insurrection, in the Hart Senate Office Building on Capitol Hill in Washington, DC on March 2, 2021. (Photo by MANDEL NGAN / POOL / AFP) (Photo by MANDEL NGAN/POOL/AFP via Getty Images)
PHOTO: MANDEL NGAN/POOL/AFP via Getty Images
FBI Director Christopher Wray testifies before the Senate Judiciary Committee on the January 6th insurrection, in the Hart Senate Office Building on Capitol Hill in Washington, DC on March 2, 2021. (Photo by MANDEL NGAN / POOL / AFP) (Photo by MANDEL NGAN/POOL/AFP via Getty Images)
Now playing
02:55
Watch FBI director debunk conspiracy theories pushed by Trump supporters
WASHINGTON, DC - FEBRUARY 10: Neera Tanden, nominee for Director of the Office of Management and Budget (OMB), testifies at her confirmation hearing before the Senate Budget Committee on February 10, 2021 at the U.S. Capitol in Washington, DC. Tanden helped found the Center for American Progress, a policy research and advocacy organization and has held senior advisory positions in Democratic politics since the Clinton administration. (Photo by Anna Moneymaker-Pool/Getty Images)
PHOTO: Anna Moneymaker-Pool/Getty Images
WASHINGTON, DC - FEBRUARY 10: Neera Tanden, nominee for Director of the Office of Management and Budget (OMB), testifies at her confirmation hearing before the Senate Budget Committee on February 10, 2021 at the U.S. Capitol in Washington, DC. Tanden helped found the Center for American Progress, a policy research and advocacy organization and has held senior advisory positions in Democratic politics since the Clinton administration. (Photo by Anna Moneymaker-Pool/Getty Images)
Now playing
01:33
Neera Tanden releases statement on pulling her nomination
PHOTO: KCAL/KCBS
Now playing
01:41
Multiple people killed in crash after SUV and semitruck collide
nigeria kidnapped schoolgirls released Busari pkg intl ldn vpx_00000423.png
nigeria kidnapped schoolgirls released Busari pkg intl ldn vpx_00000423.png
Now playing
02:09
Tears of joy and relief as 279 Nigerian schoolgirls return home
New satellite images taken by Maxar show that North Korea sometime in the past year built a structure that may be intended to obscure entrances to an underground facility where nuclear weapons or nuclear weapons components are stored.
PHOTO: Courtesy Maxar
New satellite images taken by Maxar show that North Korea sometime in the past year built a structure that may be intended to obscure entrances to an underground facility where nuclear weapons or nuclear weapons components are stored.
Now playing
01:47
See images US intelligence claims is a secret weapons site
NEW YORK, NY - JULY 23: New York Gov. Andrew Cuomo speaks during the daily media briefing at the Office of the Governor of the State of New York on July 23, 2020 in New York City. The Governor said the state liquor authority has suspended 27 bar and restaurant alcohol licenses for violations of social distancing rules as public officials try to keep the coronavirus outbreak under control. (Photo by Jeenah Moon/Getty Images)
PHOTO: Jeenah Moon/Getty Images
NEW YORK, NY - JULY 23: New York Gov. Andrew Cuomo speaks during the daily media briefing at the Office of the Governor of the State of New York on July 23, 2020 in New York City. The Governor said the state liquor authority has suspended 27 bar and restaurant alcohol licenses for violations of social distancing rules as public officials try to keep the coronavirus outbreak under control. (Photo by Jeenah Moon/Getty Images)
Now playing
02:29
NYT: Third woman comes forward against Gov. Andrew Cuomo
PHOTO: Courtesy Penguin Random House
Now playing
01:00
These 6 Dr. Seuss books won't be published anymore
John King Magic Wall 0301
PHOTO: CNN
John King Magic Wall 0301
Now playing
03:00
US coronavirus numbers coming down, but not enough
FILE - In this Jan. 29, 2011 file photo, Saudi journalist Jamal Khashoggi speaks on his cellphone at the World Economic Forum in Davos, Switzerland. Saud Al-Mojeb, Saudi Arabia's top prosecutor, is recommending the death penalty for five suspects charged with ordering and carrying out the killing of Saudi writer Jamal Khashoggi. Al-Mojeb told a press conference in Riyadh Thursday, Nov. 15, 2018,  that Khashoggi's killers had been planning the operation since September 29, three days before he was killed inside the kingdom's consulate in Istanbul. (AP Photo/Virginia Mayo, File)
PHOTO: Virginia Mayo/AP
FILE - In this Jan. 29, 2011 file photo, Saudi journalist Jamal Khashoggi speaks on his cellphone at the World Economic Forum in Davos, Switzerland. Saud Al-Mojeb, Saudi Arabia's top prosecutor, is recommending the death penalty for five suspects charged with ordering and carrying out the killing of Saudi writer Jamal Khashoggi. Al-Mojeb told a press conference in Riyadh Thursday, Nov. 15, 2018, that Khashoggi's killers had been planning the operation since September 29, three days before he was killed inside the kingdom's consulate in Istanbul. (AP Photo/Virginia Mayo, File)
Now playing
02:52
3 names mysteriously removed from Khashoggi Intel report
Protesters take cover behind homemade shields as tear gas is fired during a demonstration against the military coup in Yangon on March 1, 2021. (Photo by STR / AFP) (Photo by STR/AFP via Getty Images)
PHOTO: STR/AFP/AFP via Getty Images
Protesters take cover behind homemade shields as tear gas is fired during a demonstration against the military coup in Yangon on March 1, 2021. (Photo by STR / AFP) (Photo by STR/AFP via Getty Images)
Now playing
02:16
Footage shows tear gas, flash bangs used on protesters in Myanmar
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
PHOTO: Seth Wenig/Pool/AP
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
Now playing
01:12
Gov. Andrew Cuomo responds to allegations of sexual harassment
(CNN) —  

It was a normal Monday morning for Dallas newspaper photographer Tom Fox, until it wasn’t.

The Dallas Morning News staff photographer had just arrived at the Earle Cabell Federal Building to cover a trial when he saw the gunman. He was dressed in a black mask and black tactical gear, running toward the courthouse carrying a large rifle and multiple magazines of ammo strapped to his waist.

“I just kept thinking, ‘He’s going to look at me around that corner and he’s going to shoot,’” Fox told the paper.

An armed shooter (shown) attacks at the Earle Cabell federal courthouse Monday morning, June 17, 2019 at the in downtown Dallas. Law enforcement returned fire and the shooter was hit by gunfire. No officers or citizens were injured. (Tom Fox/The Dallas Morning News) -
PHOTO: Tom Fox/The Dallas Morning News
An armed shooter (shown) attacks at the Earle Cabell federal courthouse Monday morning, June 17, 2019 at the in downtown Dallas. Law enforcement returned fire and the shooter was hit by gunfire. No officers or citizens were injured. (Tom Fox/The Dallas Morning News) -

The gunman soon began firing, shattering glass and sending people in the building diving for cover.

His targets: Fox himself, a security guard, a woman walking a golden retriever and a man who hadn’t tied his tie yet, Fox told his newspaper.

At some point Fox shot, too. And his photo, tweeted by the newspaper Monday morning, is shocking.

The shooter, later identified by officials as 22-year old Brian Isaack Clyde, appears panicked, peering out behind wide-framed glasses over the mask that covers his nose and mouth.

He appears to be loading a magazine into the gun, and in motion.

Fox, who took the photograph while hiding behind a column just steps from the gunman, wasn’t sure if he would be shot.

“I just stood there and prayed that he wouldn’t walk past me,” Fox told the Dallas Morning News. “Because if he walks past me and sees me, he’s going to shoot me. He’s already got the gun out.

“I was just praying, ‘please don’t pass me, please don’t pass me.’”

Bullets ricocheted off the wall above him.

“I saw the puff of smoke, but I didn’t know at the time whether that was him or the police firing,” Fox said.

“I’ll never forget the sound of those repeated firing and all that glass shattering. It seemed like forever before I heard return gunfire.”

Not long after Fox captured the stunning moment, officials engaged gunfire with the shooter, FBI Special Agent in Charge Matt DeSarno said. Clyde was shot and taken to an area hospital, where he died.

“At this time, we have no information indicating that there are other shooters, other threats to the community,” DeSarno said. No officers or other citizens were injured.

The photographer told his paper he was questioned by the FBI.

But he’s got questions of his own, too.

“He was just so young. All I could think was ‘why?’ There’s just too many questions I haven’t processed yet,” Fox told the Morning News. “But this young man, what was it all for? Was it really worth it — for this?”

On his website, Fox says he’s been a photojournalist for nearly 25 years. In 2006 he and his team won the Pulitzer Prize for Breaking News Photography for their coverage of Hurricane Katrina.

“Every day is different, bringing with it new possibilities and an opportunity for creativity,” he writes.