FBI investigating US rampage as 'act of terrorism'