A man accused of trying to hit a police officer with his vehicle in North Dakota has been arrested.

Bismarck police say 22-year-old Ulises Villalobos was taken into custody Thursday in Brookings, South Dakota, without incident. Police had said that the officer shot at the suspect during the incident earlier Thursday and that he likely was struck by a bullet.

Police didn't provide details of Villalobos' condition Thursday night. The officer wasn't injured.

The shooting prompted several Bismarck schools to issue shelter-in-place orders for students.

Police Sgt. Mark Buschena said police were assisting parole or probation agents checking on a person when Villalobos fled in a vehicle and tried to hit the officer. It's unclear if Villalobos is the person agents were checking on.