LOS ANGELES (AP) — A man who flew a drone into the path of a police helicopter during a Hollywood manhunt is giving up the device and can’t own another one for three years.

Fifty-seven-year-old Martin Sheldon pleaded no contest Wednesday to obstructing a police officer.

READ MORE: Residents Call For Change Following Death Of ER Nurse Sandra Shells

In addition to forfeiting his $6,000 drone system, he must perform 30 days of community labor.

He can’t own or operate any unmanned aerial system during his three-year probation.

READ MORE: LeBron Scores 25 As Lakers End Three-Game Skid, Beat Jazz, 101-95

City prosecutors say in late August, Sheldon’s drone interfered with an LAPD helicopter that was hovering over a neighborhood searching for a man suspected of assault with a deadly weapon.

Authorities say the LAPD chopper had to make an evasive maneuver and break off the search.

MORE NEWS: Rams Fans Flood The Stands For First Ever Playoff Game At SoFi Stadium

(© Copyright 2015 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)