A man armed with a hammer threatened a petrol station employee.