It happened in the middle of shooting a scene for the movie in Washington, D.C. on Monday.
The yellow Chevy Camaro is a character called "Bumblebee" in the movie.
The police SUV was responding to a real emergency call.
The officer was apparently on a different radio frequency than police who were securing the road which was closed for filming.