An explosion on Wednesday in a coal mine in northern Mexico killed seven miners, officials said, highlighting lax safety conditions in small mines that are often poorly regulated.