The attack came after the Venezuelan president said Caracas would defend itself against US "aggression".