Lazio beat Inter in thriller