A powerful 6.8 magnitude earthquake hit southwest Japan, igniting fires near its epicenter, damaging buildings and highways, and injuring dozens.