Beijing "firmly opposes" military contact between US and Taiwan