Feds prepare state, local governments for terrorist attacks