Homeless man robbed at knifepoint, police allege