The Johns Hopkins University is reviewing an incident this week in which a man with a machete near the school’s Homewood campus was confronted by a campus security officer before being taken to a mental health facility by city police, the school said in a statement Friday.