Somali man pleads guilty to terrorism charge