A 14-year-old boy trying to resist arrest struck a sheriff’s deputy several times and broke the man’s glasses late Tuesday in Rancho Cucamonga, sheriff’s officials said.

Deputies booked the teen into West Valley Juvenile Hall on suspicion of resisting an officer, said San Bernardino County sheriff’s Sgt. Ken Jamieson. The teen and another person were near the restroom of Old Town Park at the corner of Hermosa Avenue and Feron Boulevard about 11:30 p.m. A deputy in the area approached the pair because the park was closed.

The teen ran from the park, but eventually walked back to the deputy after he was ordered to stop twice, Jamieson said. While the deputy searched the teen, the boy struck the deputy in the face. The deputy tried to take the teen to the ground and was struck three or four more times in the face and chest.

The teen fled again, but was eventually captured and arrested.

The deputy received a minor cut above his eye from his glasses being broken in the attack.