If you accidentally made an offer on an item, your best bet is to select the 'Question' tab on the listing to let the Seller know and ask that they no longer consider the offer. 

Once an offer is submitted, there is no way to cancel it.

Before making an offer on an item, it is best to review the listing and Shop Policies thoroughly to make sure you're ready to purchase in the event your offer is accepted.