A military response from the US could threaten the ceasefire that has been in place since 8 April, as Tehran warned "foreign forces" to leave the Strait of Hormuz.