The gunmen took refuge in the school after an aborted attempt to abduct a health official in a neighboring district .