Based on the following sentence, what is the cause?

The spy discovered the enemy's location.
The spy bugged the enemy's phone.