The warning came after Tehran fired two ballistic missiles on Friday night towards the base in the Indian Ocean, which is jointly operated by the US and the UK.