Two D.C. police officers suffered head injuries late Saturday afternoon when they were beaten with a pipe in the Chinatown area, authorities said.

Assistant police chief Diane Groomes said police had approached a homeless man in the 800 block of Fifth Street NW about 5 p.m. after receiving a complaint that he had been drinking in public.

Although the officers did not provoke the man, Groomes said, two of them were attacked. She said the man used a pipe and his hands in the attack.

The man was arrested and charged with two counts of assault on a police officer while armed, Groomes said. He was not identified.

(This account has been updated.)