British man pleads guilty to failed bomb attack