Three-dimensional black holes with scalar hair coupled to a Maxwell-like electrodynamics