Why did diplomacy fail between the US and Iran?

Wait 5 sec.

Talks in Geneva went well, participants said. But hours later, the US and Israel attacked Iran. Were diplomatic efforts just a ruse?