The US Navy has released footage of a patrol ship firing warning shots at an Iranian Revolutionary Guard Corps boat on Tuesday.