The shooting is being investigated as an act of terrorism, FBI Director Kash Patel said in a social media post.