the first recorded battle being 27 april 1521 saw the spanish explorer , ferdinand magellan , killed by the local chief , lapu lapu , at mactan , near cebu , in the south in the area known as the visayas .