Three people were injured in the collision