BIRMINGHAM, Ala. (WIAT) — A man who allegedly tried to hit a Moody police officer with a stolen car earlier this week has now been caught.

Brian Keith Beasley, 50, was arrested Wednesday after being found in Trussville by U.S. Marshals. Moody Police Chief Thomas Hunt said Beasley has been charged with attempted murder and is now in the St. Clair County Jail.

Hunt said that at approximately 3 a.m. Sunday, officers were chasing after Beasley after he had reportedly stolen a truck. As he was fleeing the scene, Beasley’s car became stuck in mud. Hunt said that when an officer approached the car, Beasley was able to free the car and tried to run over the officer, who dove out of the way into safety.

After missing the officer, Beasley crashed the car and fled on foot.