An explosion at a military base in the Philippines killed three soldiers and wounded nine on Friday, in a region of the country plagued by Islamist violence.