BELTON, Mo. (AP) — The FBI says a man who was fatally injured by agents in Missouri was the subject of a long terrorism investigation.

The agency said in a news release Wednesday that 36-year-old Timothy Wilson died Tuesday in Belton while agents were trying to serve a warrant.

The statement says Wilson was planning a bombing at a Kansas City-area hospital that was providing critical care during the current coronavirus pandemic.

The FBI says Wilson was driven by racist, religious and anti-government beliefs.

It also said Wilson had taken steps to acquire what he needed to build a bomb.

The statement did not detail what happened when agents arrived or how he died.