Strong quake hurts 45 in south Japan; traps people in houses