President Joe Biden has said the US will cut military ties with Niger if a coup against the sitting president continues.