A gunman who opened fire on a Dallas courthouse on Monday morning shared photos of ammunition and warned of an approaching “storm” on Facebook days before he was killed by police in the firefight.

Clad in tactical gear and carrying 150 rounds of ammunition, the masked gunman Brian Isaack Clyde, 22, opened fire with an assault rifle around 8.50 a.m. on the Earle Cabell Federal Building in downtown Dallas before being shot dead in an exchange of gunfire with officers, officials said.

No one was harmed in the shooting and Clyde’s motive remains unclear, but bizarre posts on a Facebook page believed to belong to the shooter reveal his fascination with weapons and apparent revenge.

On Saturday, Clyde shared a photo of a variety of ammunition magazine, writing they would “stop almost anything.”

On Sunday — less than 24 hours before he stormed the courthouse — he posted another image of a dagger with the caption: “A modern gladius to defend the modern Republic.”

In an ominous candlelit video from June 9, Clyde warned of an approaching battle in a video captioned “This storm is about to pay for kicking me off my porch.”

“I don’t know how much longer I have, but the f—ing storm is coming. However I’m not without defense,” he said while brandishing what appeared to be a gun. “I’m f—ing ready,” he continued. “Let’s do it.”

FBI Special Agent in Charge Matthew DeSarno identified the shooter as Clyde at a press conference on Monday morning.

Clyde died at the scene from his injuries and was taken to Baylor University Medical Center, according to The Dallas Morning News.

The Dallas Morning News reported that one of its photographers, Tom Fox, was at the courthouse to cover a trial when the man parked nearby and opened fire in his and a security guard’s direction, hitting and cracking the glass front door.

Police also detonated a suspicious package found in the vehicle Clyde drove to the courthouse, and much of downtown Dallas remains in lockdown.

It’s unclear what made Clyde want to fire on the courthouse. Previous Facebook posts from May showed a successful young man on the up.

On May 24, the gunman shared photos of what appeared to be an unfurnished new apartment, writing: “I got myself a fancy crack shack.”

“I have an extra key so if any of my bros need a place and don’t mind being squished, you’re more than welcome to stay,” he wrote.

In a video from May 8, Clyde could also be seen proudly speaking at what appeared to be a graduation ceremony while wearing an honor cord.

He is listed as a prospective graduate from Corpus Christi’s Del Mar College in a press release on its website from May 21.

“Military has always been big in my family, so has education,” Clyde said at the event just weeks ago. “When I got out, I really didn’t have any other options, so I figure go to school.”

Clyde served as an Army infantryman from August 2015 to February 2017 and achieved the rank of private first class. FBI agent Matthew DeSarno said he was discharged in 2017.