Two have been arrested after attempting to mow down a police officer as nearby school placed in lockdown.