US says it will take ‘appropriate action’ against foreigners over posts on Charlie Kirk killing