A state has the right to exercise self-defence, even if an attack has not yet occurred. This is called anticipated self-defence and requires that an attack is imminent.