A failed asylum seeker who tried to launch a knife attack on London's Israeli embassy has been jailed for life.