Man accused of posing as police officer