Beijing says its coastguard took necessary measures in accordance with law to drive away a Philippine vessel.