Three youths have been arrested over a brick being thrown at a police car and causing serious facial injuries to an officer.