Venezuela claims it has foiled attempted military uprising