It took nearly four years into his presidency to know what Barack Obama would do when confronted with an unexpected international crisis demanding immediate action to save American lives.