The man said he lived and worked at the building and produced an identification card, but the officer detained the man, according to the release.
The incident was captured on video and published on YouTube and social media. It showed the officer talking with a man with a bucket and a long item in a front yard.
In the video, the officer is shown talking with the man and has his hand on his hip, CNN reported.
According to the Daily Camera, the man is a student at Naropa University in Boulder, and the building is listed as a school residence. The long item was identified as a trash picker.
Police have not named the man or the officer, the newspaper reported.
In the 16-minute video, the man can be seen holding a bucket and the trash picker.
“You’re on my property with a gun in your hand threatening to shoot me because I’m picking up trash?" the man with the trash picker says.
“Just relax, man,” the officer says in the video.
"He's picking up trash," the person filming the video said several times. "He lives here.
In its release, Boulder police said several officers responded, including a supervisor. It was confirmed by police the object the man was holding was used to pick up trash.
"Officers ultimately determined that the man had a legal right to be on the property and returned the man's school identification card," the release said. "All officers left the area and no further action was taken."
The Boulder chapters of the NAACP and Showing Up for Racial Justice are organizing a Sunday march on Sunday to protest racial profiling, the Daily Camera reported.