Police say man tried to hold up two people at gunpoint but failed in both cases