Mayor apologizes after US police threaten black family